| 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 <unordered_set> | 8 #include <unordered_set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 void AddAnimation(scoped_ptr<Animation> animation); | 46 void AddAnimation(scoped_ptr<Animation> animation); |
| 47 void PauseAnimation(int animation_id, base::TimeDelta time_offset); | 47 void PauseAnimation(int animation_id, base::TimeDelta time_offset); |
| 48 void RemoveAnimation(int animation_id); | 48 void RemoveAnimation(int animation_id); |
| 49 void AbortAnimation(int animation_id); | 49 void AbortAnimation(int animation_id); |
| 50 void AbortAnimations(TargetProperty::Type target_property, | 50 void AbortAnimations(TargetProperty::Type target_property, |
| 51 bool needs_completion = false); | 51 bool needs_completion = false); |
| 52 | 52 |
| 53 // Ensures that the list of active animations on the main thread and the impl | 53 // Ensures that the list of active animations on the main thread and the impl |
| 54 // thread are kept in sync. This function does not take ownership of the impl | 54 // thread are kept in sync. This function does not take ownership of the impl |
| 55 // thread controller. This method is virtual for testing. | 55 // thread controller. |
| 56 virtual void PushAnimationUpdatesTo( | 56 void PushAnimationUpdatesTo(LayerAnimationController* controller_impl); |
| 57 LayerAnimationController* controller_impl); | |
| 58 | 57 |
| 59 void Animate(base::TimeTicks monotonic_time); | 58 void Animate(base::TimeTicks monotonic_time); |
| 60 void AccumulatePropertyUpdates(base::TimeTicks monotonic_time, | 59 void AccumulatePropertyUpdates(base::TimeTicks monotonic_time, |
| 61 AnimationEvents* events); | 60 AnimationEvents* events); |
| 62 | 61 |
| 63 void UpdateState(bool start_ready_animations, AnimationEvents* events); | 62 void UpdateState(bool start_ready_animations, AnimationEvents* events); |
| 64 | 63 |
| 65 // Make animations affect active observers if and only if they affect | 64 // Make animations affect active observers if and only if they affect |
| 66 // pending observers. Any animations that no longer affect any observers | 65 // pending observers. Any animations that no longer affect any observers |
| 67 // are deleted. | 66 // are deleted. |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 248 |
| 250 bool potentially_animating_transform_for_active_observers_; | 249 bool potentially_animating_transform_for_active_observers_; |
| 251 bool potentially_animating_transform_for_pending_observers_; | 250 bool potentially_animating_transform_for_pending_observers_; |
| 252 | 251 |
| 253 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 252 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
| 254 }; | 253 }; |
| 255 | 254 |
| 256 } // namespace cc | 255 } // namespace cc |
| 257 | 256 |
| 258 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 257 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
| OLD | NEW |