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

Unified Diff: ui/compositor/layer.h

Issue 291843012: compositor: Tick the UI animations from cc, instead of from timer callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 2b0d9138361dd46eabb0dbe199716c63c2256f3e..bb70ba1b43a4c15a56a167b752dbde02372720b1 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -366,6 +366,7 @@ class COMPOSITOR_EXPORT Layer
virtual void AddThreadedAnimation(
scoped_ptr<cc::Animation> animation) OVERRIDE;
virtual void RemoveThreadedAnimation(int animation_id) OVERRIDE;
+ virtual LayerAnimatorCollection* GetLayerAnimatorCollection() OVERRIDE;
// Creates a corresponding composited layer for |type_|.
void CreateWebLayer();
@@ -389,6 +390,12 @@ class COMPOSITOR_EXPORT Layer
// be called once we have been added to a tree.
void SendPendingThreadedAnimations();
+ void AddAnimatorsInTreeToCollection(LayerAnimatorCollection* collection);
+ void RemoveAnimatorsInTreeFromCollection(LayerAnimatorCollection* collection);
+
+ // Returns whether the layer has an animating LayerAnimator.
+ bool IsAnimating() const;
+
const LayerType type_;
Compositor* compositor_;
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | ui/compositor/layer.cc » ('j') | ui/compositor/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698