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

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

Issue 408833002: StartAnimation: Optimized the search for Animations which is waiting for TargetAvailability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
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/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 ObserverList<LayerAnimationEventObserver> event_observers_; 204 ObserverList<LayerAnimationEventObserver> event_observers_;
205 205
206 LayerAnimationValueProvider* value_provider_; 206 LayerAnimationValueProvider* value_provider_;
207 207
208 AnimationDelegate* layer_animation_delegate_; 208 AnimationDelegate* layer_animation_delegate_;
209 209
210 // Only try to start animations when new animations are added or when the 210 // Only try to start animations when new animations are added or when the
211 // previous attempt at starting animations failed to start all animations. 211 // previous attempt at starting animations failed to start all animations.
212 bool needs_to_start_animations_; 212 bool needs_to_start_animations_;
213 213
214 typedef base::hash_map<int, Animation*> AnimationMap;
vivekg 2014/07/21 12:39:32 nit: change "int => unsigned" as size_t is non-neg
shreyas.g 2014/07/21 13:00:37 Done.
215
214 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 216 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
215 }; 217 };
216 218
217 } // namespace cc 219 } // namespace cc
218 220
219 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 221 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698