| 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_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 virtual ~LayerImpl(); | 88 virtual ~LayerImpl(); |
| 89 | 89 |
| 90 int id() const { return layer_id_; } | 90 int id() const { return layer_id_; } |
| 91 | 91 |
| 92 // Interactions with attached animations. | 92 // Interactions with attached animations. |
| 93 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 93 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
| 94 void OnFilterAnimated(const FilterOperations& filters); | 94 void OnFilterAnimated(const FilterOperations& filters); |
| 95 void OnOpacityAnimated(float opacity); | 95 void OnOpacityAnimated(float opacity); |
| 96 void OnTransformAnimated(const gfx::Transform& transform); | 96 void OnTransformAnimated(const gfx::Transform& transform); |
| 97 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 97 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
| 98 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); | 98 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating); |
| 99 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation); |
| 99 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); | 100 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); |
| 100 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); | 101 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); |
| 101 bool IsActive() const; | 102 bool IsActive() const; |
| 102 bool OpacityCanAnimateOnImplThread() const { return false; } | 103 bool OpacityCanAnimateOnImplThread() const { return false; } |
| 103 | 104 |
| 104 // Tree structure. | 105 // Tree structure. |
| 105 LayerImpl* parent() { return parent_; } | 106 LayerImpl* parent() { return parent_; } |
| 106 LayerImplList& children() { return children_; } | 107 LayerImplList& children() { return children_; } |
| 107 LayerImpl* child_at(size_t index) const { return children_[index]; } | 108 LayerImpl* child_at(size_t index) const { return children_[index]; } |
| 108 void AddChild(std::unique_ptr<LayerImpl> child); | 109 void AddChild(std::unique_ptr<LayerImpl> child); |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 | 652 |
| 652 bool scrolls_drawn_descendant_; | 653 bool scrolls_drawn_descendant_; |
| 653 bool has_will_change_transform_hint_; | 654 bool has_will_change_transform_hint_; |
| 654 | 655 |
| 655 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 656 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 656 }; | 657 }; |
| 657 | 658 |
| 658 } // namespace cc | 659 } // namespace cc |
| 659 | 660 |
| 660 #endif // CC_LAYERS_LAYER_IMPL_H_ | 661 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |