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 LayerList& children() { return m_children; } | 71 LayerList& children() { return m_children; } |
71 LayerImpl* childAt(size_t index) const; | 72 LayerImpl* childAt(size_t index) const; |
72 void addChild(scoped_ptr<LayerImpl>); | 73 void addChild(scoped_ptr<LayerImpl>); |
73 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); | 74 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); |
74 void removeAllChildren(); | 75 void removeAllChildren(); |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // Group of properties that need to be computed based on the layer tree | 428 // Group of properties that need to be computed based on the layer tree |
428 // hierarchy before layers can be drawn. | 429 // hierarchy before layers can be drawn. |
429 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 430 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
430 | 431 |
431 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 432 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
432 }; | 433 }; |
433 | 434 |
434 } | 435 } |
435 | 436 |
436 #endif // CC_LAYER_IMPL_H_ | 437 #endif // CC_LAYER_IMPL_H_ |
OLD | NEW |