OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 5 #ifndef CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 // Ensures that the list of active animations on the main thread and the impl | 46 // Ensures that the list of active animations on the main thread and the impl |
47 // thread are kept in sync. This function does not take ownership of the impl | 47 // thread are kept in sync. This function does not take ownership of the impl |
48 // thread controller. | 48 // thread controller. |
49 virtual void PushAnimationUpdatesTo( | 49 virtual void PushAnimationUpdatesTo( |
50 LayerAnimationController* controller_impl); | 50 LayerAnimationController* controller_impl); |
51 | 51 |
52 void Animate(double monotonic_time); | 52 void Animate(double monotonic_time); |
53 void AccumulatePropertyUpdates(double monotonic_time, | 53 void AccumulatePropertyUpdates(double monotonic_time, |
54 AnimationEventsVector* events); | 54 AnimationEventsVector* events); |
55 void UpdateState(AnimationEventsVector* events); | 55 |
| 56 void UpdateState(bool start_ready_animations, |
| 57 AnimationEventsVector* events); |
56 | 58 |
57 // Returns the active animation in the given group, animating the given | 59 // Returns the active animation in the given group, animating the given |
58 // property, if such an animation exists. | 60 // property, if such an animation exists. |
59 Animation* GetAnimation(int group_id, | 61 Animation* GetAnimation(int group_id, |
60 Animation::TargetProperty target_property) const; | 62 Animation::TargetProperty target_property) const; |
61 | 63 |
62 // Returns the active animation animating the given property that is either | 64 // Returns the active animation animating the given property that is either |
63 // running, or is next to run, if such an animation exists. | 65 // running, or is next to run, if such an animation exists. |
64 Animation* GetAnimation(Animation::TargetProperty target_property) const; | 66 Animation* GetAnimation(Animation::TargetProperty target_property) const; |
65 | 67 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 double last_tick_time_; | 147 double last_tick_time_; |
146 | 148 |
147 ObserverList<LayerAnimationValueObserver> observers_; | 149 ObserverList<LayerAnimationValueObserver> observers_; |
148 | 150 |
149 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 151 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
150 }; | 152 }; |
151 | 153 |
152 } // namespace cc | 154 } // namespace cc |
153 | 155 |
154 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 156 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
OLD | NEW |