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 fa74f6f652194d53c5e07cd2fdb26bf78969e1c4..232bc1f4ad19d030629dec5d07e961086070a085 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -364,6 +364,8 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { |
OnCompositorSurfaceBuffersSwapped) |
IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, |
msg_is_ok = OnSwapCompositorFrame(msg)) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SetVSyncNotificationEnabled, |
jam
2013/04/16 16:40:34
since these messages are only sent/received on and
Sami
2013/04/16 17:13:05
Done. I've also moved them into the Android-specif
|
+ OnSetVSyncNotificationEnabled) |
IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) |
IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateIsDelayed, OnUpdateIsDelayed) |
IPC_MESSAGE_HANDLER(ViewHostMsg_HandleInputEvent_ACK, OnInputEventAck) |
@@ -1294,6 +1296,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 |
@@ -1627,6 +1633,12 @@ bool RenderWidgetHostImpl::OnSwapCompositorFrame( |
return true; |
} |
+void RenderWidgetHostImpl::OnSetVSyncNotificationEnabled(bool enabled) { |
+#if defined(OS_ANDROID) |
+ view_->SetVSyncNotificationEnabled(enabled); |
+#endif |
+} |
+ |
void RenderWidgetHostImpl::OnUpdateRect( |
const ViewHostMsg_UpdateRect_Params& params) { |
TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::OnUpdateRect"); |