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

Side by Side Diff: cc/animation_registrar.h

Issue 11598005: Ref count layer animation controllers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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') | cc/layer_animation_controller.cc » ('J')
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 #include "base/memory/ref_counted.h"
9 #include "cc/cc_export.h"
10
11 namespace cc {
12
13 class LayerAnimationController;
14
15 class CC_EXPORT AnimationRegistrar {
16 public:
17 // If an animation has been registered for the given id, return it. Otherwise
18 // creates a new one and returns a scoped_refptr to it.
19 virtual scoped_refptr<LayerAnimationController> GetAnimationControllerForId(in t id) = 0;
enne (OOO) 2012/12/17 20:21:22 80 columns /o\
20
21 // Registers the given animation controller as active. An active animation
22 // controller is one that has a running animation that needs to be ticked.
23 virtual void DidActivateAnimationController(LayerAnimationController*) = 0;
24
25 // Unregisters the given animation controller. When this happens, the
26 // animation controller will no longer be ticked (since it's not active). It
27 // is not an error to call this function with a deactivated controller.
28 virtual void DidDeactivateAnimationController(LayerAnimationController*) = 0;
29
30 // Registers the given controller as alive.
31 virtual void RegisterAnimationController(LayerAnimationController*) = 0;
32
33 // Unregisters the given controller as alive.
34 virtual void UnregisterAnimationController(LayerAnimationController*) = 0;
35 };
36
37 } // namespace cc
38
39 #endif // CC_ANIMATION_REGISTRAR_H_
OLDNEW
« no previous file with comments | « no previous file | cc/cc.gyp » ('j') | cc/layer_animation_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698