Index: cc/layers/layer.h |
diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
index bbf9c0bbbef5c8cfe1bff6793d5ed3d2cd3f0e6c..f89aec997e79a883289863de2c64c3ad9cc527c4 100644 |
--- a/cc/layers/layer.h |
+++ b/cc/layers/layer.h |
@@ -383,6 +383,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
return should_flatten_transform_from_property_tree_; |
} |
+ void SetIsHidden(bool is_hidden); |
+ |
+ bool is_hidden() const { return is_hidden_; } |
+ |
const gfx::Rect& visible_layer_rect_for_testing() const { |
return visible_layer_rect_; |
} |
@@ -629,6 +633,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
gfx::Vector2dF offset_to_transform_parent_; |
bool should_flatten_transform_from_property_tree_ : 1; |
bool draws_content_ : 1; |
+ bool is_hidden_ : 1; |
bool should_check_backface_visibility_ : 1; |
bool force_render_surface_for_testing_ : 1; |
bool subtree_property_changed_ : 1; |