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

Unified Diff: cc/layer_tree_impl.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 side-by-side diff with in-line comments
Download patch
Index: cc/layer_tree_impl.h
diff --git a/cc/layer_tree_impl.h b/cc/layer_tree_impl.h
index 8b7c925339ebf1a9e51f2f1eed7cdbfb04202299..bd7fdda81c98a7f69fe350fa45f71fced351984a 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -6,6 +6,7 @@
#define CC_LAYER_TREE_IMPL_H_
#include "base/hash_tables.h"
+#include "cc/animation_registrar.h"
#include "cc/layer_impl.h"
#if defined(COMPILER_GCC)
@@ -32,7 +33,7 @@ class OutputSurface;
class ResourceProvider;
class TileManager;
-class CC_EXPORT LayerTreeImpl {
+class CC_EXPORT LayerTreeImpl : public AnimationRegistrar {
public:
static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_impl)
{
@@ -95,6 +96,13 @@ class CC_EXPORT LayerTreeImpl {
protected:
LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
+ // AnimationRegistrar implementation.
+ virtual scoped_refptr<LayerAnimationController> GetAnimationControllerForId(int id) OVERRIDE;
+ virtual void DidActivateAnimationController(LayerAnimationController*) OVERRIDE;
+ virtual void DidDeactivateAnimationController(LayerAnimationController*) OVERRIDE;
+ virtual void RegisterAnimationController(LayerAnimationController*) OVERRIDE;
+ virtual void UnregisterAnimationController(LayerAnimationController*) OVERRIDE;
+
LayerTreeHostImpl* layer_tree_host_impl_;
int source_frame_number_;
scoped_ptr<LayerImpl> root_layer_;

Powered by Google App Engine
This is Rietveld 408576698