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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 | 56 |
57 virtual ~LayerImpl(); | 57 virtual ~LayerImpl(); |
58 | 58 |
59 int id() const; | 59 int id() const; |
60 | 60 |
61 // LayerAnimationValueObserver implementation. | 61 // LayerAnimationValueObserver implementation. |
62 virtual void OnOpacityAnimated(float) OVERRIDE; | 62 virtual void OnOpacityAnimated(float) OVERRIDE; |
63 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE; | 63 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE; |
64 virtual bool IsActive() const OVERRIDE; | 64 virtual bool IsActive() const OVERRIDE; |
| 65 virtual bool IsOrphaned() const OVERRIDE; |
65 | 66 |
66 // Tree structure. | 67 // Tree structure. |
67 LayerImpl* parent() { return m_parent; } | 68 LayerImpl* parent() { return m_parent; } |
68 const LayerImpl* parent() const { return m_parent; } | 69 const LayerImpl* parent() const { return m_parent; } |
69 const LayerList& children() const { return m_children; } | 70 const LayerList& children() const { return m_children; } |
70 void addChild(scoped_ptr<LayerImpl>); | 71 void addChild(scoped_ptr<LayerImpl>); |
71 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); | 72 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); |
72 void removeAllChildren(); | 73 void removeAllChildren(); |
73 | 74 |
74 void setMaskLayer(scoped_ptr<LayerImpl>); | 75 void setMaskLayer(scoped_ptr<LayerImpl>); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 // Group of properties that need to be computed based on the layer tree | 411 // Group of properties that need to be computed based on the layer tree |
411 // hierarchy before layers can be drawn. | 412 // hierarchy before layers can be drawn. |
412 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 413 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
413 | 414 |
414 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 415 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
415 }; | 416 }; |
416 | 417 |
417 } | 418 } |
418 | 419 |
419 #endif // CC_LAYER_IMPL_H_ | 420 #endif // CC_LAYER_IMPL_H_ |
OLD | NEW |