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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 static std::unique_ptr<LayerImpl> Create(LayerTreeImpl* tree_impl, int id) { | 86 static std::unique_ptr<LayerImpl> Create(LayerTreeImpl* tree_impl, int id) { |
87 return base::WrapUnique(new LayerImpl(tree_impl, id)); | 87 return base::WrapUnique(new LayerImpl(tree_impl, id)); |
88 } | 88 } |
89 | 89 |
90 virtual ~LayerImpl(); | 90 virtual ~LayerImpl(); |
91 | 91 |
92 int id() const { return layer_id_; } | 92 int id() const { return layer_id_; } |
93 | 93 |
94 // Interactions with attached animations. | 94 // Interactions with attached animations. |
95 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 95 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
96 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating); | 96 void OnIsAnimatingChanged(const PropertyAnimationState& mask, |
97 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation); | 97 const PropertyAnimationState& state); |
98 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); | |
99 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); | |
100 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating); | |
101 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation); | |
102 bool IsActive() const; | 98 bool IsActive() const; |
103 | 99 |
104 void DistributeScroll(ScrollState* scroll_state); | 100 void DistributeScroll(ScrollState* scroll_state); |
105 void ApplyScroll(ScrollState* scroll_state); | 101 void ApplyScroll(ScrollState* scroll_state); |
106 | 102 |
107 void set_property_tree_sequence_number(int sequence_number) {} | 103 void set_property_tree_sequence_number(int sequence_number) {} |
108 | 104 |
109 void SetTransformTreeIndex(int index); | 105 void SetTransformTreeIndex(int index); |
110 int transform_tree_index() const { return transform_tree_index_; } | 106 int transform_tree_index() const { return transform_tree_index_; } |
111 | 107 |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 bool scrolls_drawn_descendant_ : 1; | 568 bool scrolls_drawn_descendant_ : 1; |
573 bool has_will_change_transform_hint_ : 1; | 569 bool has_will_change_transform_hint_ : 1; |
574 bool needs_push_properties_ : 1; | 570 bool needs_push_properties_ : 1; |
575 | 571 |
576 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 572 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
577 }; | 573 }; |
578 | 574 |
579 } // namespace cc | 575 } // namespace cc |
580 | 576 |
581 #endif // CC_LAYERS_LAYER_IMPL_H_ | 577 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |