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 OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | |
97 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating); | 96 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating); |
98 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation); | 97 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation); |
99 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); | 98 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); |
100 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); | 99 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); |
101 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating); | 100 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating); |
102 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation); | 101 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation); |
103 bool IsActive() const; | 102 bool IsActive() const; |
104 | 103 |
105 void DistributeScroll(ScrollState* scroll_state); | 104 void DistributeScroll(ScrollState* scroll_state); |
106 void ApplyScroll(ScrollState* scroll_state); | 105 void ApplyScroll(ScrollState* scroll_state); |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 bool scrolls_drawn_descendant_ : 1; | 576 bool scrolls_drawn_descendant_ : 1; |
578 bool has_will_change_transform_hint_ : 1; | 577 bool has_will_change_transform_hint_ : 1; |
579 bool needs_push_properties_ : 1; | 578 bool needs_push_properties_ : 1; |
580 | 579 |
581 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 580 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
582 }; | 581 }; |
583 | 582 |
584 } // namespace cc | 583 } // namespace cc |
585 | 584 |
586 #endif // CC_LAYERS_LAYER_IMPL_H_ | 585 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |