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

Unified Diff: ui/compositor/layer.h

Issue 1012583002: CC Animations: Port UI Browser Compositor to use compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@redirect
Patch Set: Use AnimationHost. Created 5 years, 8 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
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index ab4151f8647079b075a948ce88e564d5f00801e8..27c66b0d77a9635bef22aeb07bf96d92d2e332b1 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -34,6 +34,7 @@
class SkCanvas;
namespace cc {
+class AnimationPlayer;
class ContentLayer;
class CopyOutputRequest;
class DelegatedFrameProvider;
@@ -418,6 +419,13 @@ class COMPOSITOR_EXPORT Layer
// Creates a corresponding composited layer for |type_|.
void CreateCcLayer();
+ // Creates LayerAnimationController or AnimationPlayer in cc module.
+ void RegisterForAnimations(Compositor* compositor);
+ void AttachLayer();
+ void DetachLayer();
+ void AttachAnimationPlayer();
+ void DetachAnimationPlayer();
+
// Recomputes and sets to |cc_layer_|.
void RecomputeDrawsContentAndUVRect();
void RecomputePosition();
@@ -500,6 +508,7 @@ class COMPOSITOR_EXPORT Layer
LayerOwner* owner_;
scoped_refptr<LayerAnimator> animator_;
+ scoped_refptr<cc::AnimationPlayer> animation_player_;
// Animations that are passed to AddThreadedAnimation before this layer is
// added to a tree.
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698