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

Unified Diff: content/public/browser/android/synchronous_compositor.h

Issue 817603002: cc: Make scheduling be driven by vsync for android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase compile errors. Created 5 years, 9 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/public/browser/android/synchronous_compositor.h
diff --git a/content/public/browser/android/synchronous_compositor.h b/content/public/browser/android/synchronous_compositor.h
index 476b86dce8310bb235402a50a67bab4137f8fca5..be7920993b1fc87e77814009f2725206114b9625 100644
--- a/content/public/browser/android/synchronous_compositor.h
+++ b/content/public/browser/android/synchronous_compositor.h
@@ -87,6 +87,11 @@ class CONTENT_EXPORT SynchronousCompositor {
// SynchronousCompositorClient::GetTotalRootLayerScrollOffset).
virtual void DidChangeRootLayerScrollOffset() = 0;
+ // Called by the embedder to notify that the compositor is active. The
+ // compositor won't ask for vsyncs when it's inactive. NOTE: The compositor
+ // starts off as inactive and needs a SetActive(true) call to begin.
+ virtual void SetIsActive(bool is_active) = 0;
+
protected:
virtual ~SynchronousCompositor() {}
};

Powered by Google App Engine
This is Rietveld 408576698