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

Unified Diff: content/renderer/gpu/compositor_output_surface.cc

Issue 15058004: cc: Rename VSync to BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.h ('k') | content/renderer/gpu/input_handler_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8d240435fcf85dce1b3bc5ca73ca15324e84afd3..c703d3a25a3947b839b08dfaf06bf00a9b4d3dc5 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -43,7 +43,7 @@ IPC::ForwardingMessageFilter* CompositorOutputSurface::CreateFilter(
ViewMsg_UpdateVSyncParameters::ID,
ViewMsg_SwapCompositorFrameAck::ID,
#if defined(OS_ANDROID)
- ViewMsg_DidVSync::ID
+ ViewMsg_BeginFrame::ID
#endif
};
@@ -136,7 +136,7 @@ void CompositorOutputSurface::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ViewMsg_UpdateVSyncParameters, OnUpdateVSyncParameters);
IPC_MESSAGE_HANDLER(ViewMsg_SwapCompositorFrameAck, OnSwapAck);
#if defined(OS_ANDROID)
- IPC_MESSAGE_HANDLER(ViewMsg_DidVSync, OnDidVSync);
+ IPC_MESSAGE_HANDLER(ViewMsg_BeginFrame, OnBeginFrame);
#endif
IPC_END_MESSAGE_MAP()
}
@@ -148,14 +148,14 @@ void CompositorOutputSurface::OnUpdateVSyncParameters(
}
#if defined(OS_ANDROID)
-void CompositorOutputSurface::EnableVSyncNotification(bool enable) {
+void CompositorOutputSurface::SetNeedsBeginFrame(bool enable) {
DCHECK(CalledOnValidThread());
- Send(new ViewHostMsg_SetVSyncNotificationEnabled(routing_id_, enable));
+ Send(new ViewHostMsg_SetNeedsBeginFrame(routing_id_, enable));
}
-void CompositorOutputSurface::OnDidVSync(base::TimeTicks frame_time) {
+void CompositorOutputSurface::OnBeginFrame(base::TimeTicks frame_time) {
DCHECK(CalledOnValidThread());
- client_->DidVSync(frame_time);
+ client_->BeginFrame(frame_time);
}
#endif // defined(OS_ANDROID)
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.h ('k') | content/renderer/gpu/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698