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

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

Issue 123563002: Remove gpu side LatencyInfo merging (Closed) Base URL: http://git.chromium.org/chromium/src.git@gpu-per-event-latency-6-small
Patch Set: fix mac_rel compiler error. Move kMaxLatencyInfoNumber to .cc file 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
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 b17bc59faae752ffa98445671ceac7261a81bcdb..ce542a9dd57c08324c66a4e5b2b64e2d858ae4a9 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -284,6 +284,9 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped(
const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params) {
TRACE_EVENT0("renderer",
"GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped");
+ if (!ui::LatencyInfo::Verify(params.latency_info,
+ "GpuHostMsg_AcceleratedSurfaceBuffersSwapped"))
+ return;
AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
ack_params.mailbox_name = params.mailbox_name;
ack_params.sync_point = 0;
@@ -312,7 +315,11 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped(
view->DidReceiveRendererFrame();
}
-void GpuProcessHostUIShim::OnFrameDrawn(const ui::LatencyInfo& latency_info) {
+void GpuProcessHostUIShim::OnFrameDrawn(
+ const std::vector<ui::LatencyInfo>& latency_info) {
+ if (!ui::LatencyInfo::Verify(latency_info,
+ "GpuProcessHostUIShim::OnFrameDrawn"))
+ return;
RenderWidgetHostImpl::CompositorFrameDrawn(latency_info);
}
@@ -320,11 +327,13 @@ void GpuProcessHostUIShim::OnAcceleratedSurfacePostSubBuffer(
const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params) {
TRACE_EVENT0("renderer",
"GpuProcessHostUIShim::OnAcceleratedSurfacePostSubBuffer");
-
+ if (!ui::LatencyInfo::Verify(params.latency_info,
+ "GpuHostMsg_AcceleratedSurfacePostSubBuffer"))
+ return;
AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
ack_params.mailbox_name = params.mailbox_name;
ack_params.sync_point = 0;
- ScopedSendOnIOThread delayed_send(
+ ScopedSendOnIOThread delayed_send(
host_id_,
new AcceleratedSurfaceMsg_BufferPresented(params.route_id,
ack_params));
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.h ('k') | content/browser/renderer_host/compositing_iosurface_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698