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

Unified Diff: cc/layer.h

Issue 12093067: Handle ui::Layer's visibility using cc::Layer's m_isDrawable flag (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 11 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 | « no previous file | cc/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.h
diff --git a/cc/layer.h b/cc/layer.h
index f95482b7ef5a05b683d8b9ec976efaf4af1c843d..25551b3ef1f34e0f01e0e3f7effa8a5640fabc5f 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -199,6 +199,9 @@ public:
void setIsDrawable(bool);
+ void setVisible(bool);
piman 2013/01/30 21:38:50 Nit: we may want to name that as "setSubtreeVisibl
+ bool visible() const { return m_visible; }
+
void setReplicaLayer(Layer*);
Layer* replicaLayer() { return m_replicaLayer.get(); }
const Layer* replicaLayer() const { return m_replicaLayer.get(); }
@@ -379,6 +382,7 @@ private:
bool m_isContainerForFixedPositionLayers;
bool m_fixedToContainerLayer;
bool m_isDrawable;
+ bool m_visible;
bool m_masksToBounds;
bool m_contentsOpaque;
bool m_doubleSided;
« no previous file with comments | « no previous file | cc/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698