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

Unified Diff: ui/compositor/compositor.h

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes, rebasing with master Created 8 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: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 33f6d6b6c3a9ef78348b56518b734b91809b4d01..6efcf700d540e28f65d0b7f497874fd33d7b628b 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -191,6 +191,8 @@ class COMPOSITOR_EXPORT Compositor
// and the OnCompositingEnded.
bool DrawPending() const { return swap_posted_; }
+ bool CurrentlyCompositing() const { return currently_compositing_; }
+
// Internal functions, called back by command-buffer contexts on swap buffer
// events.
@@ -241,6 +243,9 @@ class COMPOSITOR_EXPORT Compositor
// for completion.
bool swap_posted_;
+ // This is true between OnCompositingStarted and OnCompositingEnded
+ bool currently_compositing_;
+
// The device scale factor of the monitor that this compositor is compositing
// layers on.
float device_scale_factor_;

Powered by Google App Engine
This is Rietveld 408576698