Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: cc/layers/layer_impl.h

Issue 2357533002: CC Animation: Use std::bitset to update animation state. (Closed)
Patch Set: Reparent. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698