Index: content/browser/android/in_process/synchronous_compositor_output_surface.cc |
diff --git a/content/browser/android/in_process/synchronous_compositor_output_surface.cc b/content/browser/android/in_process/synchronous_compositor_output_surface.cc |
index 59556ad894a191dd0bef8f95399947fe3892a0fd..8d4a272aa20d48f004084710da22069c7f7fe2d1 100644 |
--- a/content/browser/android/in_process/synchronous_compositor_output_surface.cc |
+++ b/content/browser/android/in_process/synchronous_compositor_output_surface.cc |
@@ -121,9 +121,10 @@ void SynchronousCompositorOutputSurface::Reshape( |
// Intentional no-op: surface size is controlled by the embedder. |
} |
-void SynchronousCompositorOutputSurface::SetNeedsBeginFrame(bool enable) { |
+void SynchronousCompositorOutputSurface::SetNeedsBeginFrames( |
+ bool needs_begin_frames) { |
DCHECK(CalledOnValidThread()); |
- needs_begin_frame_ = enable; |
+ needs_begin_frame_ = needs_begin_frames; |
SynchronousCompositorOutputSurfaceDelegate* delegate = GetDelegate(); |
if (delegate && !invoking_composite_) |
delegate->SetContinuousInvalidate(needs_begin_frame_); |
@@ -233,7 +234,7 @@ void SynchronousCompositorOutputSurface::InvokeComposite( |
transform_for_tile_priority, |
!hardware_draw); |
SetNeedsRedrawRect(gfx::Rect(viewport.size())); |
- client_->BeginFrame(cc::BeginFrameArgs::CreateForSynchronousCompositor()); |
+ SendBeginFrame(cc::BeginFrameArgs::CreateForSynchronousCompositor()); |
// After software draws (which might move the viewport arbitrarily), restore |
// the previous hardware viewport to allow CC's tile manager to prioritize |