Chromium Code Reviews| Index: cc/layers/layer.h |
| diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
| index c310377ed025558769b7d9496840ccb3166a0032..c8cdaa4917c4c79beca753f6769c0b93be8de9da 100644 |
| --- a/cc/layers/layer.h |
| +++ b/cc/layers/layer.h |
| @@ -404,6 +404,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
| visible_layer_rect_ = rect; |
| } |
| + // This is for tracking damage. |
| void SetSubtreePropertyChanged(); |
| bool subtree_property_changed() const { return subtree_property_changed_; } |
| @@ -444,6 +445,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
| void SetScrollbarsHiddenFromImplSide(bool hidden); |
| + void set_is_scroll_clip_layer() { is_scroll_clip_layer_ = true; } |
| + |
| const gfx::Rect& update_rect() const { return inputs_.update_rect; } |
| LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } |
| @@ -460,9 +463,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
| // immediately that a commit is required. This implies SetNeedsPushProperties |
| // to push that property. |
| void SetNeedsCommit(); |
| - // This is identical to SetNeedsCommit, but the former requests a rebuild of |
| - // the property trees. |
| - void SetNeedsCommitNoRebuild(); |
| + |
| // Called when there's been a change in layer structure. Implies |
| // SetNeedsCommit and property tree rebuld, but not SetNeedsPushProperties |
| // (the full tree is synced over). |
| @@ -532,6 +533,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
| // indices becomes invalid. |
| void InvalidatePropertyTreesIndices(); |
| + // This is set whenever a property changed on layer that affects whether this |
| + // layer should own a property tree node or not. |
| + void PropertyTreesNeedRebuild(); |
|
danakj
2017/03/17 14:26:51
This function needs a verb at the front of it. "Do
weiliangc
2017/03/17 20:58:42
Done with Set.
|
| + |
| // Encapsulates all data, callbacks or interfaces received from the embedder. |
| // TODO(khushalsagar): This is only valid when PropertyTrees are built |
| // internally in cc. Update this for the SPv2 path where blink generates |
| @@ -647,6 +652,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
| bool force_render_surface_for_testing_ : 1; |
| bool subtree_property_changed_ : 1; |
| bool may_contain_video_ : 1; |
| + bool is_scroll_clip_layer_ : 1; |
| SkColor safe_opaque_background_color_; |
| // draw_blend_mode may be different than blend_mode_, |
| // when a RenderSurface re-parents the layer's blend_mode. |