diff options
| author | 2014-08-28 08:43:39 -0700 | |
|---|---|---|
| committer | 2014-08-28 08:43:39 -0700 | |
| commit | d0cd9db31639b246587fe494ec15d32d9fdb3dc7 (patch) | |
| tree | ce549c76db9b00250555e14ee03b0634e0e73d4b /libs/hwui/AnimationContext.h | |
| parent | 1a08a8f52f263fb8431b54dce89d333660ac3b1f (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.h | 7 |
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); |