diff options
author | John Reck <jreck@google.com> | 2014-08-14 09:02:01 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-08-27 17:44:25 -0700 |
commit | 119907cd2575c56b1ebf66348b52e67aaf6a88d8 (patch) | |
tree | 9990e37a560021560316ac2cfc6cf4c64df9cb92 /libs/hwui/AnimatorManager.h | |
parent | 1698297daf8068bc9e6971d43744d48f1672bab2 (diff) |
Animator stuff
Bug: 17228458
Change-Id: Id884a429a512f9cd2be0ed16dbd0f10e92b4440d
Diffstat (limited to 'libs/hwui/AnimatorManager.h')
-rw-r--r-- | libs/hwui/AnimatorManager.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/libs/hwui/AnimatorManager.h b/libs/hwui/AnimatorManager.h index 0d177c51fde1..d5f56ed283bf 100644 --- a/libs/hwui/AnimatorManager.h +++ b/libs/hwui/AnimatorManager.h @@ -27,6 +27,7 @@ namespace android { namespace uirenderer { +class AnimationHandle; class BaseRenderNodeAnimator; class RenderNode; @@ -39,12 +40,26 @@ public: void addAnimator(const sp<BaseRenderNodeAnimator>& animator); - void pushStaging(TreeInfo& info); + void setAnimationHandle(AnimationHandle* handle); + bool hasAnimationHandle() { return mAnimationHandle; } + + void pushStaging(); + // Returns the combined dirty mask of all animators run uint32_t animate(TreeInfo& info); + void animateNoDamage(TreeInfo& info); + + // Hard-ends all animators. Used for cleanup if the root is being destroyed. + ANDROID_API void endAllAnimators(); + + bool hasAnimators() { return mAnimators.size(); } + private: + uint32_t animateCommon(TreeInfo& info); + RenderNode& mParent; + AnimationHandle* mAnimationHandle; // To improve the efficiency of resizing & removing from the vector // use manual ref counting instead of sp<>. |