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

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: 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/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..91e28476ae94d022999db3b98d8e811a99f32622 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_BeginChildFrame::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_BeginChildFrame, OnBeginImplFrame);
#endif
IPC_END_MESSAGE_MAP()
}
@@ -148,14 +148,14 @@ void CompositorOutputSurface::OnUpdateVSyncParameters(
}
#if defined(OS_ANDROID)
-void CompositorOutputSurface::EnableVSyncNotification(bool enable) {
+void CompositorOutputSurface::SetNeedsBeginImplFrame(bool enable) {
DCHECK(CalledOnValidThread());
- Send(new ViewHostMsg_SetVSyncNotificationEnabled(routing_id_, enable));
+ Send(new ViewHostMsg_SetNeedsBeginChildFrame(routing_id_, enable));
}
-void CompositorOutputSurface::OnDidVSync(base::TimeTicks frame_time) {
+void CompositorOutputSurface::OnBeginImplFrame(base::TimeTicks frame_time) {
DCHECK(CalledOnValidThread());
- client_->DidVSync(frame_time);
+ client_->BeginImplFrame(frame_time);
}
#endif // defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698