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

Side by Side Diff: cc/animation/layer_animation_controller.h

Issue 1782433002: CC Animation: Erase old animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasetests
Patch Set: Format. Created 4 years, 9 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 | « no previous file | cc/blink/web_layer_impl.cc » ('j') | cc/layers/layer.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/blink/web_layer_impl.cc » ('j') | cc/layers/layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698