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

Unified Diff: content/browser/android/in_process/synchronous_compositor_output_surface.cc

Issue 218633010: cc: Handle retroactive BeginFrames in the Scheduler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@compositorVsyncDisable
Patch Set: fix comment typo Created 6 years, 8 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/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 e65291bd93c7822d42bd3848ff3cf5065583b479..af79e1b0cd35dc75d90cb7d6487bfd95683165c5 100644
--- a/content/browser/android/in_process/synchronous_compositor_output_surface.cc
+++ b/content/browser/android/in_process/synchronous_compositor_output_surface.cc
@@ -123,14 +123,13 @@ void SynchronousCompositorOutputSurface::Reshape(
// Intentional no-op: surface size is controlled by the embedder.
}
-void SynchronousCompositorOutputSurface::SetNeedsBeginImplFrame(
- bool enable) {
+void SynchronousCompositorOutputSurface::SetNeedsBeginFrame(bool enable) {
DCHECK(CalledOnValidThread());
- needs_begin_impl_frame_ = enable;
- client_ready_for_begin_impl_frame_ = true;
+ needs_begin_frame_ = enable;
+ client_ready_for_begin_frame_ = true;
SynchronousCompositorOutputSurfaceDelegate* delegate = GetDelegate();
if (delegate && !invoking_composite_)
- delegate->SetContinuousInvalidate(needs_begin_impl_frame_);
+ delegate->SetContinuousInvalidate(needs_begin_frame_);
}
void SynchronousCompositorOutputSurface::SwapBuffers(
@@ -239,7 +238,7 @@ void SynchronousCompositorOutputSurface::InvokeComposite(
SetExternalDrawConstraints(
adjusted_transform, viewport, clip, valid_for_tile_management);
SetNeedsRedrawRect(gfx::Rect(viewport.size()));
- BeginImplFrame(cc::BeginFrameArgs::CreateForSynchronousCompositor());
+ BeginFrame(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
@@ -258,12 +257,11 @@ void SynchronousCompositorOutputSurface::InvokeComposite(
SynchronousCompositorOutputSurfaceDelegate* delegate = GetDelegate();
if (delegate)
- delegate->SetContinuousInvalidate(needs_begin_impl_frame_);
+ delegate->SetContinuousInvalidate(needs_begin_frame_);
}
-void
-SynchronousCompositorOutputSurface::PostCheckForRetroactiveBeginImplFrame() {
- // Synchronous compositor cannot perform retroactive BeginImplFrames, so
+void SynchronousCompositorOutputSurface::PostCheckForRetroactiveBeginFrame() {
+ // Synchronous compositor cannot perform retroactive BeginFrames, so
// intentionally no-op here.
}
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_output_surface.h ('k') | content/public/common/content_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698