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

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

Issue 577643002: Making OutputSurface a begin frame source and vsync source. (Closed)
Patch Set: Created 6 years, 3 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/browser/android/in_process/synchronous_compositor_output_surface.cc ('k') | no next file » | 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 2f7cfc8c5ee9336f69d609c86fea03ecd9456f87..34c18e213a16b4e2fb3f8efe3bdaa4dacfdb09fd 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -221,14 +221,14 @@ void CompositorOutputSurface::OnUpdateVSyncParametersFromBrowser(
}
#if defined(OS_ANDROID)
-void CompositorOutputSurface::SetNeedsBeginFrame(bool enable) {
+void CompositorOutputSurface::SetNeedsBeginFrames(bool needs_begin_frames) {
DCHECK(CalledOnValidThread());
- Send(new ViewHostMsg_SetNeedsBeginFrame(routing_id_, enable));
+ Send(new ViewHostMsg_SetNeedsBeginFrame(routing_id_, needs_begin_frames));
}
void CompositorOutputSurface::OnBeginFrame(const cc::BeginFrameArgs& args) {
DCHECK(CalledOnValidThread());
- client_->BeginFrame(args);
+ SendBeginFrame(args);
}
#endif // defined(OS_ANDROID)
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698