Index: cc/layers/layer.h |
diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
index 5b21f5bc78a9ce8e9ff439a7e3cb1a30ead2dec9..40113f734e9765f2003a556ee1e230ed6817c631 100644 |
--- a/cc/layers/layer.h |
+++ b/cc/layers/layer.h |
@@ -391,6 +391,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_; |
} |
@@ -624,6 +628,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 use_local_transform_for_backface_visibility_ : 1; |
bool should_check_backface_visibility_ : 1; |
bool force_render_surface_for_testing_ : 1; |