| Index: chrome/browser/renderer_host/render_widget_host_view_mac.mm
|
| diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
|
| index 350a53bed7a66f8436a07760a9ad1eb6f543dadf..3708e095f15549c9ee63e21566e2e10a96633e8a 100644
|
| --- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
|
| +++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
|
| @@ -595,7 +595,8 @@ RenderWidgetHostViewMac::RenderWidgetHostViewMac(RenderWidgetHost* widget)
|
| is_loading_(false),
|
| is_hidden_(false),
|
| shutdown_factory_(this),
|
| - needs_gpu_visibility_update_after_repaint_(false) {
|
| + needs_gpu_visibility_update_after_repaint_(false),
|
| + compositing_surface_(gfx::kNullPluginWindow) {
|
| // |cocoa_view_| owns us and we will be deleted when |cocoa_view_| goes away.
|
| // Since we autorelease it, our caller must put |native_view()| into the view
|
| // hierarchy right after calling us.
|
| @@ -1102,8 +1103,7 @@ void RenderWidgetHostViewMac::DeallocFakePluginWindowHandle(
|
| plugin_container_manager_.IsRootContainer(window)) {
|
| GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::GetForRenderer(
|
| render_widget_host_->process()->id(),
|
| - content::
|
| - CAUSE_FOR_GPU_LAUNCH_RENDERWIDGETHOSTVIEWMAC_DEALLOCFAKEPLUGINWINDOWHANDLE);
|
| + content::CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH);
|
| if (ui_shim) {
|
| ui_shim->DidDestroyAcceleratedSurface(
|
| render_widget_host_->process()->id(),
|
| @@ -1297,13 +1297,11 @@ void RenderWidgetHostViewMac::GpuRenderingStateDidChange() {
|
| }
|
| }
|
|
|
| -gfx::PluginWindowHandle RenderWidgetHostViewMac::AcquireCompositingSurface() {
|
| - return AllocateFakePluginWindowHandle(/*opaque=*/true, /*root=*/true);
|
| -}
|
| -
|
| -void RenderWidgetHostViewMac::ReleaseCompositingSurface(
|
| - gfx::PluginWindowHandle surface) {
|
| - DestroyFakePluginWindowHandle(surface);
|
| +gfx::PluginWindowHandle RenderWidgetHostViewMac::GetCompositingSurface() {
|
| + if (compositing_surface_ == gfx::kNullPluginWindow)
|
| + compositing_surface_ = AllocateFakePluginWindowHandle(
|
| + /*opaque=*/true, /*root=*/true);
|
| + return compositing_surface_;
|
| }
|
|
|
| void RenderWidgetHostViewMac::DrawAcceleratedSurfaceInstance(
|
|
|