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

Side by Side Diff: cc/layer_animation_controller.h

Issue 12453010: Allow impl-only animations, and return opacity values via AnimationEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits, patch for submission. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer.cc ('k') | cc/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_LAYER_ANIMATION_CONTROLLER_H_ 5 #ifndef CC_LAYER_ANIMATION_CONTROLLER_H_
6 #define CC_LAYER_ANIMATION_CONTROLLER_H_ 6 #define CC_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual void removeAnimation(int animationId); 42 virtual void removeAnimation(int animationId);
43 virtual void removeAnimation(int animationId, Animation::TargetProperty); 43 virtual void removeAnimation(int animationId, Animation::TargetProperty);
44 virtual void suspendAnimations(double monotonicTime); 44 virtual void suspendAnimations(double monotonicTime);
45 virtual void resumeAnimations(double monotonicTime); 45 virtual void resumeAnimations(double monotonicTime);
46 46
47 // Ensures that the list of active animations on the main thread and the imp l thread 47 // Ensures that the list of active animations on the main thread and the imp l thread
48 // are kept in sync. This function does not take ownership of the impl threa d controller. 48 // are kept in sync. This function does not take ownership of the impl threa d controller.
49 virtual void pushAnimationUpdatesTo(LayerAnimationController*); 49 virtual void pushAnimationUpdatesTo(LayerAnimationController*);
50 50
51 void animate(double monotonicTime); 51 void animate(double monotonicTime);
52 void accumulatePropertyUpdates(double monotonicTime, AnimationEventsVector*) ;
52 void updateState(AnimationEventsVector*); 53 void updateState(AnimationEventsVector*);
53 54
54 // Returns the active animation in the given group, animating the given prop erty, if such an 55 // Returns the active animation in the given group, animating the given prop erty, if such an
55 // animation exists. 56 // animation exists.
56 Animation* getAnimation(int groupId, Animation::TargetProperty) const; 57 Animation* getAnimation(int groupId, Animation::TargetProperty) const;
57 58
58 // Returns the active animation animating the given property that is either running, or is 59 // Returns the active animation animating the given property that is either running, or is
59 // next to run, if such an animation exists. 60 // next to run, if such an animation exists.
60 Animation* getAnimation(Animation::TargetProperty) const; 61 Animation* getAnimation(Animation::TargetProperty) const;
61 62
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 double m_lastTickTime; 128 double m_lastTickTime;
128 129
129 ObserverList<LayerAnimationValueObserver> m_observers; 130 ObserverList<LayerAnimationValueObserver> m_observers;
130 131
131 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 132 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
132 }; 133 };
133 134
134 } // namespace cc 135 } // namespace cc
135 136
136 #endif // CC_LAYER_ANIMATION_CONTROLLER_H_ 137 #endif // CC_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698