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

Unified Diff: cc/layers/layer_impl.h

Issue 16896017: Add a hide_layer_and_subtree() flag to cc::Layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hide-subtree-flag: Created 7 years, 6 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: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 6ec1573b0c93f44426925cdfdec34d4f8433b867..7645d9ff16f3c764756885b2c8fdd018864f9ab9 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -133,6 +133,9 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
void SetDrawsContent(bool draws_content);
bool DrawsContent() const { return draws_content_; }
+ void SetHideLayerAndSubtree(bool hide);
+ bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; }
+
bool force_render_surface() const { return force_render_surface_; }
void SetForceRenderSurface(bool force) { force_render_surface_ = force; }
@@ -518,6 +521,7 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
gfx::Transform transform_;
bool draws_content_;
+ bool hide_layer_and_subtree_;
bool force_render_surface_;
// Set for the layer that other layers are fixed to.
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698