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

Unified Diff: views/view.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Move compositing notifications to Layer Created 9 years, 4 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
« no previous file with comments | « views/paint_lock.cc ('k') | views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.h
diff --git a/views/view.h b/views/view.h
index c188531537a91bf0919c72854bf614d7a504dafb..18deaf06f8cbacf0eb9a62c2c344ce11ed10730c 100644
--- a/views/view.h
+++ b/views/view.h
@@ -1104,6 +1104,7 @@ class VIEWS_EXPORT View : public AcceleratorTarget {
friend class FocusManager;
friend class ViewStorage;
friend class Widget;
+ friend class PaintLock;
// Used to track a drag. RootView passes this into
// ProcessMousePressed/Dragged.
@@ -1229,6 +1230,9 @@ class VIEWS_EXPORT View : public AcceleratorTarget {
// Accelerated painting ------------------------------------------------------
+ // Disables painting during time-critical operations. Used by PaintLock.
+ void set_painting_enabled(bool enabled) { painting_enabled_ = enabled; }
Ben Goodger (Google) 2011/08/31 20:34:00 It troubles me that we need this. It seems like t
+
// Returns true if this view should paint to layer.
bool ShouldPaintToLayer() const;
@@ -1353,6 +1357,9 @@ class VIEWS_EXPORT View : public AcceleratorTarget {
// Whether this view is enabled.
bool enabled_;
+ // Whether this view is painting.
+ bool painting_enabled_;
+
// Whether or not RegisterViewForVisibleBoundsNotification on the RootView
// has been invoked.
bool registered_for_visible_bounds_notification_;
« no previous file with comments | « views/paint_lock.cc ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698