| Index: content/browser/renderer_host/render_widget_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
| index 75ab862e158a37cdb82d808acf7956c043bbcec4..ed892383487aca8e0b27a8a239a4659ce80d0044 100644
|
| --- a/content/browser/renderer_host/render_widget_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
| @@ -349,6 +349,8 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_CompositorSurfaceBuffersSwapped,
|
| OnCompositorSurfaceBuffersSwapped)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_SwapCompositorFrame, OnSwapCompositorFrame)
|
| + IPC_MESSAGE_HANDLER(ViewHostMsg_EnableVSyncNotification,
|
| + OnEnableVSyncNotification)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateIsDelayed, OnUpdateIsDelayed)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_HandleInputEvent_ACK, OnInputEventAck)
|
| @@ -1222,6 +1224,10 @@ void RenderWidgetHostImpl::UpdateVSyncParameters(base::TimeTicks timebase,
|
| Send(new ViewMsg_UpdateVSyncParameters(GetRoutingID(), timebase, interval));
|
| }
|
|
|
| +void RenderWidgetHostImpl::SendVSync(base::TimeTicks frame_time) {
|
| + Send(new ViewMsg_DidVSync(GetRoutingID(), frame_time));
|
| +}
|
| +
|
| void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status,
|
| int exit_code) {
|
| // Clearing this flag causes us to re-create the renderer when recovering
|
| @@ -1551,6 +1557,12 @@ void RenderWidgetHostImpl::OnSwapCompositorFrame(
|
| #endif
|
| }
|
|
|
| +void RenderWidgetHostImpl::OnEnableVSyncNotification(bool enable) {
|
| + TRACE_EVENT1("renderer_host",
|
| + "RenderWidgetHostImpl::OnEnableVSyncNotification", "enable", enable);
|
| + view_->EnableVSyncNotification(enable);
|
| +}
|
| +
|
| void RenderWidgetHostImpl::OnUpdateRect(
|
| const ViewHostMsg_UpdateRect_Params& params) {
|
| TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::OnUpdateRect");
|
|
|