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..7fdcc733626b878035916396427815d32e5313cb 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 active. 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() {} |
}; |