Force new surface on BrowserPluginGuest reattach.
commit321584de7a278818f3ed143bda999d544583e800
authorwjmaclean <wjmaclean@chromium.org>
Tue, 30 Jun 2015 19:21:56 +0000 (30 12:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Jun 2015 19:22:48 +0000 (30 19:22 +0000)
tree68e1f1f015a3039879cd71c3d3366b2f6e9dbf84
parent2a91d16fd031ecea9923c60198a29cf07ec40aa6
Force 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

Review URL: https://codereview.chromium.org/1199963011

Cr-Commit-Position: refs/heads/master@{#336848}
content/browser/browser_plugin/browser_plugin_guest.cc
content/browser/browser_plugin/browser_plugin_guest.h
content/browser/frame_host/render_widget_host_view_child_frame.cc
content/browser/frame_host/render_widget_host_view_child_frame.h
content/browser/frame_host/render_widget_host_view_guest.cc
content/browser/frame_host/render_widget_host_view_guest_unittest.cc