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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 return make_scoped_ptr(new LayerImpl(treeImpl, id)); | 53 return make_scoped_ptr(new LayerImpl(treeImpl, id)); |
54 } | 54 } |
55 | 55 |
56 virtual ~LayerImpl(); | 56 virtual ~LayerImpl(); |
57 | 57 |
58 int id() const; | 58 int id() const; |
59 | 59 |
60 // LayerAnimationValueObserver implementation. | 60 // LayerAnimationValueObserver implementation. |
61 virtual void OnOpacityAnimated(float) OVERRIDE; | 61 virtual void OnOpacityAnimated(float) OVERRIDE; |
62 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE; | 62 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE; |
| 63 virtual bool IsActive() const OVERRIDE; |
63 | 64 |
64 // Tree structure. | 65 // Tree structure. |
65 LayerImpl* parent() { return m_parent; } | 66 LayerImpl* parent() { return m_parent; } |
66 const LayerImpl* parent() const { return m_parent; } | 67 const LayerImpl* parent() const { return m_parent; } |
67 const LayerList& children() const { return m_children; } | 68 const LayerList& children() const { return m_children; } |
68 void addChild(scoped_ptr<LayerImpl>); | 69 void addChild(scoped_ptr<LayerImpl>); |
69 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); | 70 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); |
70 void removeAllChildren(); | 71 void removeAllChildren(); |
71 | 72 |
72 void setMaskLayer(scoped_ptr<LayerImpl>); | 73 void setMaskLayer(scoped_ptr<LayerImpl>); |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 // Group of properties that need to be computed based on the layer tree | 399 // Group of properties that need to be computed based on the layer tree |
399 // hierarchy before layers can be drawn. | 400 // hierarchy before layers can be drawn. |
400 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 401 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
401 | 402 |
402 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 403 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
403 }; | 404 }; |
404 | 405 |
405 } | 406 } |
406 | 407 |
407 #endif // CC_LAYER_IMPL_H_ | 408 #endif // CC_LAYER_IMPL_H_ |
OLD | NEW |