Index: cc/layers/layer_impl.h |
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h |
index 3635a3ab53aea9abef6145aecb6e546732ab13d1..702ac61260b3d491d48986c9584f7cfc5c793ea8 100644 |
--- a/cc/layers/layer_impl.h |
+++ b/cc/layers/layer_impl.h |
@@ -183,6 +183,14 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, |
return should_flatten_transform_from_property_tree_; |
} |
+ void set_is_clipped_from_property_tree(bool is_clipped) { |
+ is_clipped_from_property_tree_ = is_clipped; |
+ SetNeedsPushProperties(); |
+ } |
+ bool is_clipped_from_property_tree() const { |
+ return is_clipped_from_property_tree_; |
+ } |
+ |
void UpdatePropertyTreeTransform(); |
void UpdatePropertyTreeOpacity(); |
void UpdatePropertyTreeScrollOffset(); |
@@ -764,6 +772,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, |
bool double_sided_ : 1; |
bool should_flatten_transform_ : 1; |
bool should_flatten_transform_from_property_tree_ : 1; |
+ bool is_clipped_from_property_tree_ : 1; |
// Tracks if drawing-related properties have changed since last redraw. |
bool layer_property_changed_ : 1; |