| Index: content/renderer/gpu/compositor_output_surface.cc
|
| diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
|
| index de11e048870d5df9c093e4b0caf36c5c17496122..f341e25fbb002293ed6464c8911c4934f0b20400 100644
|
| --- a/content/renderer/gpu/compositor_output_surface.cc
|
| +++ b/content/renderer/gpu/compositor_output_surface.cc
|
| @@ -135,9 +135,22 @@
|
| if (!HasClient())
|
| return;
|
| IPC_BEGIN_MESSAGE_MAP(CompositorOutputSurface, message)
|
| + IPC_MESSAGE_HANDLER(ViewMsg_UpdateVSyncParameters,
|
| + OnUpdateVSyncParametersFromBrowser);
|
| IPC_MESSAGE_HANDLER(ViewMsg_ReclaimCompositorResources,
|
| OnReclaimCompositorResources);
|
| IPC_END_MESSAGE_MAP()
|
| +}
|
| +
|
| +void CompositorOutputSurface::OnUpdateVSyncParametersFromBrowser(
|
| + base::TimeTicks timebase,
|
| + base::TimeDelta interval) {
|
| + DCHECK(client_thread_checker_.CalledOnValidThread());
|
| + TRACE_EVENT2("cc",
|
| + "CompositorOutputSurface::OnUpdateVSyncParametersFromBrowser",
|
| + "timebase", (timebase - base::TimeTicks()).InSecondsF(),
|
| + "interval", interval.InSecondsF());
|
| + client_->CommitVSyncParameters(timebase, interval);
|
| }
|
|
|
| void CompositorOutputSurface::OnReclaimCompositorResources(
|
|
|