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

Side by Side Diff: cc/animation_registrar.h

Issue 11491003: Revert 171714 - Use an auxiliary list of animation controllers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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/cc.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_ANIMATION_REGISTRAR_H_
6 #define CC_ANIMATION_REGISTRAR_H_
7
8 namespace cc {
9
10 class LayerAnimationController;
11
12 // TODO(vollick): we need to rename:
13 // AnimationRegistrar -> AnimationController
14 // LayerAnimationController -> LayerAnimator
15 class CC_EXPORT AnimationRegistrar {
16 public:
17 // Registers the given animation controller as active. An active animation
18 // controller is one that has a running animation that needs to be ticked.
19 virtual void DidActivateAnimationController(LayerAnimationController*) = 0;
20
21 // Unregisters the given animation controller. When this happens, the
22 // animation controller will no longer be ticked (since it's not active). It
23 // is not an error to call this function with a deactivated controller.
24 virtual void DidDeactivateAnimationController(LayerAnimationController*) = 0;
25
26 // Registers the given controller as alive.
27 virtual void RegisterAnimationController(LayerAnimationController*) = 0;
28
29 // Unregisters the given controller as alive.
30 virtual void UnregisterAnimationController(LayerAnimationController*) = 0;
31 };
32
33 } // namespace cc
34
35 #endif // CC_ANIMATION_REGISTRAR_H_
OLDNEW
« no previous file with comments | « no previous file | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698