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

Side by Side Diff: cc/layers/layer_impl.h

Issue 1850493002: cc : Remove parent for mask and replica layers in LayerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 gfx::ScrollOffset ScrollOffsetForAnimation() const; 94 gfx::ScrollOffset ScrollOffsetForAnimation() const;
95 void OnFilterAnimated(const FilterOperations& filters); 95 void OnFilterAnimated(const FilterOperations& filters);
96 void OnOpacityAnimated(float opacity); 96 void OnOpacityAnimated(float opacity);
97 void OnTransformAnimated(const gfx::Transform& transform); 97 void OnTransformAnimated(const gfx::Transform& transform);
98 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 98 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
99 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 99 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating);
100 bool IsActive() const; 100 bool IsActive() const;
101 101
102 // Tree structure. 102 // Tree structure.
103 LayerImpl* parent() { return parent_; } 103 LayerImpl* parent() { return parent_; }
104 const LayerImpl* parent() const { return parent_; }
105 LayerImplList& children() { return children_; } 104 LayerImplList& children() { return children_; }
106 LayerImpl* child_at(size_t index) const { return children_[index]; } 105 LayerImpl* child_at(size_t index) const { return children_[index]; }
107 void AddChild(scoped_ptr<LayerImpl> child); 106 void AddChild(scoped_ptr<LayerImpl> child);
108 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child); 107 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child);
109 void SetParent(LayerImpl* parent); 108 void SetParent(LayerImpl* parent);
110 109
111 void SetScrollParent(LayerImpl* parent); 110 void SetScrollParent(LayerImpl* parent);
112 111
113 LayerImpl* scroll_parent() { return scroll_parent_; } 112 LayerImpl* scroll_parent() { return scroll_parent_; }
114 const LayerImpl* scroll_parent() const { return scroll_parent_; } 113 const LayerImpl* scroll_parent() const { return scroll_parent_; }
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 bool layer_or_descendant_is_drawn_; 764 bool layer_or_descendant_is_drawn_;
766 // If true, the layer or one of its descendants has a touch handler. 765 // If true, the layer or one of its descendants has a touch handler.
767 bool layer_or_descendant_has_touch_handler_; 766 bool layer_or_descendant_has_touch_handler_;
768 767
769 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 768 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
770 }; 769 };
771 770
772 } // namespace cc 771 } // namespace cc
773 772
774 #endif // CC_LAYERS_LAYER_IMPL_H_ 773 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698