Lines Matching refs:Layer
66 // Base class for composited layers. Special layer types are derived from
68 class CC_EXPORT Layer : public base::RefCounted<Layer>,
80 static scoped_refptr<Layer> Create();
84 Layer* RootLayer();
85 Layer* parent() { return parent_; }
86 const Layer* parent() const { return parent_; }
87 void AddChild(scoped_refptr<Layer> child);
88 void InsertChild(scoped_refptr<Layer> child, size_t index);
89 void ReplaceChild(Layer* reference, scoped_refptr<Layer> new_layer);
93 bool HasAncestor(const Layer* ancestor) const;
96 Layer* child_at(size_t index) { return children_[index].get(); }
98 // This requests the layer and its subtree be rendered and given to the
99 // callback. If the copy is unable to be produced (the layer is destroyed
118 // A layer's bounds are in logical, non-page-scaled pixels (however, the
119 // root layer's bounds are in physical pixels).
126 void SetMaskLayer(Layer* mask_layer);
127 Layer* mask_layer() { return mask_layer_.get(); }
128 const Layer* mask_layer() const { return mask_layer_.get(); }
145 // A layer is root for an isolated group when it and all its descendants are
158 // Background filters are filters applied to what is behind this layer, when
159 // they are viewed through non-opaque regions in this layer. They are used
189 void SetScrollParent(Layer* parent);
191 Layer* scroll_parent() { return scroll_parent_; }
192 const Layer* scroll_parent() const { return scroll_parent_; }
194 void AddScrollChild(Layer* child);
195 void RemoveScrollChild(Layer* child);
197 std::set<Layer*>* scroll_children() { return scroll_children_.get(); }
198 const std::set<Layer*>* scroll_children() const {
202 void SetClipParent(Layer* ancestor);
204 Layer* clip_parent() { return clip_parent_; }
205 const Layer* clip_parent() const {
209 void AddClipChild(Layer* child);
210 void RemoveClipChild(Layer* child);
212 std::set<Layer*>* clip_children() { return clip_children_.get(); }
213 const std::set<Layer*>* clip_children() const {
217 DrawProperties<Layer>& draw_properties() { return draw_properties_; }
218 const DrawProperties<Layer>& draw_properties() const {
252 Layer* render_target() {
257 const Layer* render_target() const {
344 void SetReplicaLayer(Layer* layer);
345 Layer* replica_layer() { return replica_layer_.get(); }
346 const Layer* replica_layer() const { return replica_layer_.get(); }
373 virtual void PushPropertiesTo(LayerImpl* layer);
379 // pixels. The contents scale is 1 for the root layer as it is already in
397 // Set the priority of all desired textures in this layer.
433 // Constructs a LayerImpl of the correct runtime type for this Layer type.
465 virtual ~Layer();
467 Layer();
471 // Called when this layer has been modified in some way, but isn't sure
475 // Called when a property has been modified in a way that the layer
479 // Called when there's been a change in layer structure. Implies both
500 // If this layer has a scroll parent, it removes |this| from its list of
504 // If this layer has a clip parent, it removes |this| from its list of clip
510 // This flag is set when the layer needs to push properties to the impl
519 // Tracks whether this layer may have changed stacking order with its
527 // Note this rect is in layer space (not content space).
530 scoped_refptr<Layer> mask_layer_;
534 // When true, the layer is about to perform an update. Any commit requests
539 friend class base::RefCounted<Layer>;
541 void SetParent(Layer* layer);
545 int IndexOfChild(const Layer* reference);
548 void RemoveChildOrDependent(Layer* child);
562 Layer* parent_;
564 // Layer instances have a weak pointer to their LayerTreeHost.
565 // This pointer value is nil when a Layer is not in a tree and is
566 // updated via SetLayerTreeHost() if a layer moves between trees.
571 // Layer properties.
604 Layer* scroll_parent_;
605 scoped_ptr<std::set<Layer*> > scroll_children_;
607 Layer* clip_parent_;
608 scoped_ptr<std::set<Layer*> > clip_children_;
613 // Replica layer used for reflections.
614 scoped_refptr<Layer> replica_layer_;
625 DrawProperties<Layer> draw_properties_;
629 DISALLOW_COPY_AND_ASSIGN(Layer);