DescriptionForce new surface on BrowserPluginGuest reattach.
Sometimes a BrowserPlugin object in an embedder renderer is destroyed
and replaced, without RenderWidgetHostViewGuest knowing. This means that
during the next compositor swap the new BrowserPlugin does not have a
surface to composit into.
This CL forces a new surface to be send to the BrowserPlugin if it is
determined that the BrowserPlugin has not received a surface since it
attached to BrowserPluginGuest.
BUG=501573
Committed: https://crrev.com/321584de7a278818f3ed143bda999d544583e800
Cr-Commit-Position: refs/heads/master@{#336848}
Patch Set 1 #Patch Set 2 : Add test, clear surface when not attached. #Patch Set 3 : Add blank lines where needed. #
Total comments: 2
Patch Set 4 : Rename & move ClearCompositorSurfaceIfNecessary(). #
Total comments: 4
Patch Set 5 : Fix style, improve function name. #Patch Set 6 : Fix test, and add check for null surface id in test. #
Depends on Patchset: Messages
Total messages: 27 (8 generated)
|