summaryrefslogtreecommitdiff
path: root/libs/hwui/AnimationContext.h
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2014-08-28 08:43:39 -0700
committer John Reck <jreck@google.com> 2014-08-28 08:43:39 -0700
commitd0cd9db31639b246587fe494ec15d32d9fdb3dc7 (patch)
treece549c76db9b00250555e14ee03b0634e0e73d4b /libs/hwui/AnimationContext.h
parent1a08a8f52f263fb8431b54dce89d333660ac3b1f (diff)
Actually end animators on tree destruction
Bug: 17313962 Change-Id: I66b86d50b415f9aa33da23297f22e2cf7f96f565
Diffstat (limited to 'libs/hwui/AnimationContext.h')
-rw-r--r--libs/hwui/AnimationContext.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/hwui/AnimationContext.h b/libs/hwui/AnimationContext.h
index e32c33de692c..900d953ed6ac 100644
--- a/libs/hwui/AnimationContext.h
+++ b/libs/hwui/AnimationContext.h
@@ -46,8 +46,15 @@ class AnimationHandle {
public:
AnimationContext& context() { return mContext; }
+ // Called by the RenderNode when it has internally pulsed its own animations
+ // this frame and does not need to be run again this frame.
void notifyAnimationsRan();
+ // Stops tracking the RenderNode and destroys the handle. The node must be
+ // re-attached to the AnimationContext to receive managed animation
+ // pulses.
+ void release();
+
private:
friend class AnimationContext;
AnimationHandle(AnimationContext& context);