Home | History | Annotate | Download | only in layers

Lines Matching defs:Layer

50 // Base class for composited layers. Special layer types are derived from
52 class CC_EXPORT Layer : public base::RefCounted<Layer>,
59 static scoped_refptr<Layer> Create();
63 Layer* RootLayer();
64 Layer* parent() { return parent_; }
65 const Layer* parent() const { return parent_; }
66 void AddChild(scoped_refptr<Layer> child);
67 void InsertChild(scoped_refptr<Layer> child, size_t index);
68 void ReplaceChild(Layer* reference, scoped_refptr<Layer> new_layer);
72 bool HasAncestor(const Layer* ancestor) const;
75 Layer* child_at(size_t index) { return children_[index].get(); }
77 // This requests the layer and its subtree be rendered and given to the
78 // callback. If the copy is unable to be produced (the layer is destroyed
97 // A layer's bounds are in logical, non-page-scaled pixels (however, the
98 // root layer's bounds are in physical pixels).
105 void SetMaskLayer(Layer* mask_layer);
106 Layer* mask_layer() { return mask_layer_.get(); }
107 const Layer* mask_layer() const { return mask_layer_.get(); }
123 // Background filters are filters applied to what is behind this layer, when
124 // they are viewed through non-opaque regions in this layer. They are used
154 DrawProperties<Layer, RenderSurface>& draw_properties() {
157 const DrawProperties<Layer, RenderSurface>& draw_properties() const {
191 Layer* render_target() {
196 const Layer* render_target() const {
274 void SetReplicaLayer(Layer* layer);
275 Layer* replica_layer() { return replica_layer_.get(); }
276 const Layer* replica_layer() const { return replica_layer_.get(); }
298 virtual void PushPropertiesTo(LayerImpl* layer);
304 // pixels. The contents scale is 1 for the root layer as it is already in
321 // Set the priority of all desired textures in this layer.
354 // In impl-side painting, this returns true if this layer type is not
363 // Constructs a LayerImpl of the correct runtime type for this Layer type.
393 virtual ~Layer();
395 Layer();
399 // Called when this layer has been modified in some way, but isn't sure
403 // Called when a property has been modified in a way that the layer
407 // Called when there's been a change in layer structure. Implies both
421 // This flag is set when the layer needs to push properties to the impl
430 // Tracks whether this layer may have changed stacking order with its
438 // Note this rect is in layer space (not content space).
441 scoped_refptr<Layer> mask_layer_;
445 // When true, the layer is about to perform an update. Any commit requests
450 friend class base::RefCounted<Layer>;
452 void SetParent(Layer* layer);
456 int IndexOfChild(const Layer* reference);
459 void RemoveChildOrDependent(Layer* child);
467 Layer* parent_;
469 // Layer instances have a weak pointer to their LayerTreeHost.
470 // This pointer value is nil when a Layer is not in a tree and is
471 // updated via SetLayerTreeHost() if a layer moves between trees.
476 // Layer properties.
511 // Replica layer used for reflections.
512 scoped_refptr<Layer> replica_layer_;
521 DrawProperties<Layer, RenderSurface> draw_properties_;
525 DISALLOW_COPY_AND_ASSIGN(Layer);