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

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: 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
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 friend class base::RefCounted<LayerAnimationController>; 94 friend class base::RefCounted<LayerAnimationController>;
95 95
96 explicit LayerAnimationController(int id); 96 explicit LayerAnimationController(int id);
97 virtual ~LayerAnimationController(); 97 virtual ~LayerAnimationController();
98 98
99 private: 99 private:
100 typedef base::hash_set<int> TargetProperties; 100 typedef base::hash_set<int> TargetProperties;
101 101
102 void PushNewAnimationsToImplThread( 102 void PushNewAnimationsToImplThread(
103 LayerAnimationController* controller_impl) const; 103 LayerAnimationController* controller_impl) const;
104 void RemoveAnimationsCompletedOnMainThread( 104 void FinishAnimationsCompletedOnMainThread(
105 LayerAnimationController* controller_impl) const; 105 LayerAnimationController* controller_impl) const;
106 void PushPropertiesToImplThread( 106 void PushPropertiesToImplThread(
107 LayerAnimationController* controller_impl) const; 107 LayerAnimationController* controller_impl) const;
108 void ReplaceImplThreadAnimations( 108 void ReplaceImplThreadAnimations(
109 LayerAnimationController* controller_impl) const; 109 LayerAnimationController* controller_impl) const;
110 110
111 void StartAnimationsWaitingForNextTick(double monotonic_time); 111 void StartAnimationsWaitingForNextTick(double monotonic_time);
112 void StartAnimationsWaitingForStartTime(double monotonic_time); 112 void StartAnimationsWaitingForStartTime(double monotonic_time);
113 void StartAnimationsWaitingForTargetAvailability(double monotonic_time); 113 void StartAnimationsWaitingForTargetAvailability(double monotonic_time);
114 void ResolveConflicts(double monotonic_time); 114 void ResolveConflicts(double monotonic_time);
(...skipping 30 matching lines...) Expand all
145 double last_tick_time_; 145 double last_tick_time_;
146 146
147 ObserverList<LayerAnimationValueObserver> observers_; 147 ObserverList<LayerAnimationValueObserver> observers_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 149 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
150 }; 150 };
151 151
152 } // namespace cc 152 } // namespace cc
153 153
154 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 154 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/layer_animation_controller.cc » ('j') | cc/animation/layer_animation_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698