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

Unified Diff: cc/layer_tree_host.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
« no previous file with comments | « cc/layer_impl.cc ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host.h
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h
index dfb40941e263e8c96815212365c577d8e74e98f4..51ae3d7b2d10a16268c0c567dfed9dbc28f05137 100644
--- a/cc/layer_tree_host.h
+++ b/cc/layer_tree_host.h
@@ -41,6 +41,7 @@ struct hash<WebKit::WebGraphicsContext3D*> {
namespace cc {
+class AnimationRegistrar;
class Layer;
class LayerTreeHostImpl;
class LayerTreeHostImplClient;
@@ -146,7 +147,6 @@ public:
bool commitRequested() const;
void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallClockTime);
- virtual void didAddAnimation();
Layer* rootLayer() { return m_rootLayer.get(); }
const Layer* rootLayer() const { return m_rootLayer.get(); }
@@ -199,6 +199,8 @@ public:
Proxy* proxy() const { return m_proxy.get(); }
+ AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar.get(); }
+
protected:
LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&);
bool initialize(scoped_ptr<Thread> implThread);
@@ -227,7 +229,6 @@ private:
void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base::Time wallClockTime);
bool m_animating;
- bool m_needsAnimateLayers;
bool m_needsFullTreeSync;
base::CancelableClosure m_prepaintCallback;
@@ -272,6 +273,8 @@ private:
typedef ScopedPtrVector<PrioritizedResource> TextureList;
size_t m_partialTextureUpdateRequests;
+ scoped_ptr<AnimationRegistrar> m_animationRegistrar;
+
static bool s_needsFilterContext;
DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
« no previous file with comments | « cc/layer_impl.cc ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698