| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 OnIsAnimatingChanged(const PropertyAnimationState& mask, | 96 void OnIsAnimatingChanged(const PropertyAnimationState& mask, |
| 97 const PropertyAnimationState& state); | 97 const PropertyAnimationState& state); |
| 98 bool IsActive() const; | 98 bool IsActive() const; |
| 99 | 99 |
| 100 void DistributeScroll(ScrollState* scroll_state); | 100 void DistributeScroll(ScrollState* scroll_state); |
| 101 void ApplyScroll(ScrollState* scroll_state); | |
| 102 | 101 |
| 103 void set_property_tree_sequence_number(int sequence_number) {} | 102 void set_property_tree_sequence_number(int sequence_number) {} |
| 104 | 103 |
| 105 void SetTransformTreeIndex(int index); | 104 void SetTransformTreeIndex(int index); |
| 106 int transform_tree_index() const { return transform_tree_index_; } | 105 int transform_tree_index() const { return transform_tree_index_; } |
| 107 | 106 |
| 108 void SetClipTreeIndex(int index); | 107 void SetClipTreeIndex(int index); |
| 109 int clip_tree_index() const { return clip_tree_index_; } | 108 int clip_tree_index() const { return clip_tree_index_; } |
| 110 | 109 |
| 111 void SetEffectTreeIndex(int index); | 110 void SetEffectTreeIndex(int index); |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 bool scrolls_drawn_descendant_ : 1; | 567 bool scrolls_drawn_descendant_ : 1; |
| 569 bool has_will_change_transform_hint_ : 1; | 568 bool has_will_change_transform_hint_ : 1; |
| 570 bool needs_push_properties_ : 1; | 569 bool needs_push_properties_ : 1; |
| 571 | 570 |
| 572 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 571 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 573 }; | 572 }; |
| 574 | 573 |
| 575 } // namespace cc | 574 } // namespace cc |
| 576 | 575 |
| 577 #endif // CC_LAYERS_LAYER_IMPL_H_ | 576 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |