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. |