diff options
Diffstat (limited to 'content/browser/gpu')
-rw-r--r-- | content/browser/gpu/gpu_process_host.cc | 1 | ||||
-rw-r--r-- | content/browser/gpu/gpu_surface_tracker.cc | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc index 652452b..59fb228 100644 --- a/content/browser/gpu/gpu_process_host.cc +++ b/content/browser/gpu/gpu_process_host.cc @@ -131,6 +131,7 @@ void AcceleratedSurfaceBuffersSwappedCompletedForRenderer( int render_widget_id = 0; if (!GpuSurfaceTracker::Get()->GetRenderWidgetIDForSurface( surface_id, &render_process_id, &render_widget_id)) { + RenderWidgetHostImpl::CompositorFrameDrawn(latency_info); return; } RenderProcessHost* host = RenderProcessHost::FromID(render_process_id); diff --git a/content/browser/gpu/gpu_surface_tracker.cc b/content/browser/gpu/gpu_surface_tracker.cc index ce1e956..350e6f3 100644 --- a/content/browser/gpu/gpu_surface_tracker.cc +++ b/content/browser/gpu/gpu_surface_tracker.cc @@ -121,6 +121,8 @@ bool GpuSurfaceTracker::GetRenderWidgetIDForSurface(int surface_id, if (it == surface_map_.end()) return false; const SurfaceInfo& info = it->second; + if (!info.handle.is_transport()) + return false; *renderer_id = info.renderer_id; *render_widget_id = info.render_widget_id; return true; |