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

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

Issue 239963002: Android: Move scheduling logic to CompositorImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/compositor.h
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
index 7cb73e258386415e941768e8151745a667865d1b..236a90dd00d4703b40142317be9787071963a9fb 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -69,8 +69,9 @@ class CONTENT_EXPORT Compositor {
// The buffer is not modified if false is returned.
virtual bool CompositeAndReadback(void *pixels, const gfx::Rect& rect) = 0;
- // Composite immediately. Used in single-threaded mode.
- virtual void Composite() = 0;
+ // Request layout and draw. You only need to call this if you need to trigger
+ // Composite *without* having modified the layer tree.
+ virtual void SetNeedsComposite() = 0;
// Generates a UIResource and returns a UIResourceId. |is_transient|
// indicates whether or not to release the resource once the bitmap

Powered by Google App Engine
This is Rietveld 408576698