Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 140663003: Removed requirement for the renderer to know it's process ID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after long weekend Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index ce542a9dd57c08324c66a4e5b2b64e2d858ae4a9..4d46484991a5294a3f12bad95dcbec3050d808cc 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -310,8 +310,15 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped(
if (swap_delay.ToInternalValue())
base::PlatformThread::Sleep(swap_delay);
+ GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params view_params = params;
+
+ RenderWidgetHostImpl* impl =
+ RenderWidgetHostImpl::From(view->GetRenderWidgetHost());
+ for (size_t i = 0; i < view_params.latency_info.size(); i++)
+ impl->AddLatencyInfoComponentIds(&view_params.latency_info[i]);
+
// View must send ACK message after next composite.
- view->AcceleratedSurfaceBuffersSwapped(params, host_id_);
+ view->AcceleratedSurfaceBuffersSwapped(view_params, host_id_);
view->DidReceiveRendererFrame();
}
@@ -349,8 +356,15 @@ void GpuProcessHostUIShim::OnAcceleratedSurfacePostSubBuffer(
delayed_send.Cancel();
+ GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params view_params = params;
+
+ RenderWidgetHostImpl* impl =
+ RenderWidgetHostImpl::From(view->GetRenderWidgetHost());
+ for (size_t i = 0; i < view_params.latency_info.size(); i++)
+ impl->AddLatencyInfoComponentIds(&view_params.latency_info[i]);
+
// View must send ACK message after next composite.
- view->AcceleratedSurfacePostSubBuffer(params, host_id_);
+ view->AcceleratedSurfacePostSubBuffer(view_params, host_id_);
view->DidReceiveRendererFrame();
}
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698