| 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));
|
|
|