| Index: content/browser/gpu/gpu_process_host.cc
|
| diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
|
| index 008987a4aca3cfdd4aafb11a9c13870fa229056b..36e2ad72235e75f1c64e5a87da7a25384c889b90 100644
|
| --- a/content/browser/gpu/gpu_process_host.cc
|
| +++ b/content/browser/gpu/gpu_process_host.cc
|
| @@ -800,6 +800,13 @@ void GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped(
|
| "GpuHostMsg_AcceleratedSurfaceBuffersSwapped"))
|
| return;
|
|
|
| + gfx::AcceleratedWidget native_widget =
|
| + GpuSurfaceTracker::Get()->AcquireNativeWidget(params.surface_id);
|
| + if (native_widget) {
|
| + RenderWidgetHelper::OnNativeSurfaceBuffersSwappedOnIOThread(this, params);
|
| + return;
|
| + }
|
| +
|
| gfx::GLSurfaceHandle surface_handle =
|
| GpuSurfaceTracker::Get()->GetSurfaceHandle(params.surface_id);
|
| // Compositor window is always gfx::kNullPluginWindow.
|
|
|