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

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

Issue 13613003: cc: Make animations tick regardless of drawing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop extra statemachine function Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/animation/layer_animation_controller.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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698