OLD | NEW |
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_LAYER_IMPL_H_ | 5 #ifndef CC_LAYER_IMPL_H_ |
6 #define CC_LAYER_IMPL_H_ | 6 #define CC_LAYER_IMPL_H_ |
7 | 7 |
8 #include <public/WebFilterOperations.h> | 8 #include <public/WebFilterOperations.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual void setOpacityFromAnimation(float) OVERRIDE; | 58 virtual void setOpacityFromAnimation(float) OVERRIDE; |
59 virtual float opacity() const OVERRIDE; | 59 virtual float opacity() const OVERRIDE; |
60 virtual void setTransformFromAnimation(const gfx::Transform&) OVERRIDE; | 60 virtual void setTransformFromAnimation(const gfx::Transform&) OVERRIDE; |
61 virtual const gfx::Transform& transform() const OVERRIDE; | 61 virtual const gfx::Transform& transform() const OVERRIDE; |
62 | 62 |
63 // Tree structure. | 63 // Tree structure. |
64 LayerImpl* parent() { return m_parent; } | 64 LayerImpl* parent() { return m_parent; } |
65 const LayerImpl* parent() const { return m_parent; } | 65 const LayerImpl* parent() const { return m_parent; } |
66 const LayerList& children() const { return m_children; } | 66 const LayerList& children() const { return m_children; } |
67 void addChild(scoped_ptr<LayerImpl>); | 67 void addChild(scoped_ptr<LayerImpl>); |
68 void removeFromParent(); | 68 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); |
69 void removeAllChildren(); | 69 void removeAllChildren(); |
70 | 70 |
71 void setMaskLayer(scoped_ptr<LayerImpl>); | 71 void setMaskLayer(scoped_ptr<LayerImpl>); |
72 LayerImpl* maskLayer() { return m_maskLayer.get(); } | 72 LayerImpl* maskLayer() { return m_maskLayer.get(); } |
73 const LayerImpl* maskLayer() const { return m_maskLayer.get(); } | 73 const LayerImpl* maskLayer() const { return m_maskLayer.get(); } |
74 | 74 |
75 void setReplicaLayer(scoped_ptr<LayerImpl>); | 75 void setReplicaLayer(scoped_ptr<LayerImpl>); |
76 LayerImpl* replicaLayer() { return m_replicaLayer.get(); } | 76 LayerImpl* replicaLayer() { return m_replicaLayer.get(); } |
77 const LayerImpl* replicaLayer() const { return m_replicaLayer.get(); } | 77 const LayerImpl* replicaLayer() const { return m_replicaLayer.get(); } |
78 | 78 |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // Group of properties that need to be computed based on the layer tree | 403 // Group of properties that need to be computed based on the layer tree |
404 // hierarchy before layers can be drawn. | 404 // hierarchy before layers can be drawn. |
405 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 405 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
406 | 406 |
407 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 407 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
408 }; | 408 }; |
409 | 409 |
410 } | 410 } |
411 | 411 |
412 #endif // CC_LAYER_IMPL_H_ | 412 #endif // CC_LAYER_IMPL_H_ |
OLD | NEW |