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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 15058004: cc: Rename VSync to BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix Android Created 7 years, 7 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/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 7af02c004b6f734faf998007b1858d5c72a7e700..172cc3ca49c675ea27f83b4f8fbde3a88f985f8b 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -133,8 +133,8 @@ bool RenderWidgetHostViewAndroid::OnMessageReceived(
IPC_MESSAGE_HANDLER(ViewHostMsg_StartContentIntent, OnStartContentIntent)
IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeBodyBackgroundColor,
OnDidChangeBodyBackgroundColor)
- IPC_MESSAGE_HANDLER(ViewHostMsg_SetVSyncNotificationEnabled,
- OnSetVSyncNotificationEnabled)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginChildFrame,
+ OnSetNeedsBeginChildFrame)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -404,11 +404,12 @@ void RenderWidgetHostViewAndroid::OnDidChangeBodyBackgroundColor(
content_view_core_->OnBackgroundColorChanged(color);
}
-void RenderWidgetHostViewAndroid::SendVSync(base::TimeTicks frame_time) {
- host_->Send(new ViewMsg_DidVSync(host_->GetRoutingID(), frame_time));
+void RenderWidgetHostViewAndroid::SendBeginChildFrame(
+ base::TimeTicks frame_time) {
+ host_->Send(new ViewMsg_BeginChildFrame(host_->GetRoutingID(), frame_time));
}
-void RenderWidgetHostViewAndroid::OnSetVSyncNotificationEnabled(bool enabled) {
+void RenderWidgetHostViewAndroid::OnSetNeedsBeginChildFrame(bool enabled) {
if (content_view_core_)
content_view_core_->SetVSyncNotificationEnabled(enabled);
}

Powered by Google App Engine
This is Rietveld 408576698