summaryrefslogtreecommitdiff
path: root/libs/hwui/AnimationContext.h
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2014-09-03 16:46:05 -0700
committer John Reck <jreck@google.com> 2014-09-03 17:37:59 -0700
commite2478d45ccbe5b6abb360ac9d44771b5f4a50bde (patch)
treef66b0980340a65a83bfd790bd63dc6b179221790 /libs/hwui/AnimationContext.h
parent3215da25dd24c9570a90a6151b692e5fd38fbbc7 (diff)
Fix some wrong-thread issues around animator management
Bug: 17372309 Fixes a case where UI thread and RT thread both used the same method which wasn't safe for either of them. Adds additional assertions & logging in unusual circumstances to try and track down where the issue is occuring from. Change-Id: I93d31a6fd0c5927259b67bdf96a475944226eee6
Diffstat (limited to 'libs/hwui/AnimationContext.h')
-rw-r--r--libs/hwui/AnimationContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/AnimationContext.h b/libs/hwui/AnimationContext.h
index 900d953ed6ac..9b3d5f486464 100644
--- a/libs/hwui/AnimationContext.h
+++ b/libs/hwui/AnimationContext.h
@@ -98,6 +98,8 @@ public:
ANDROID_API virtual void callOnFinished(BaseRenderNodeAnimator* animator, AnimationListener* listener);
+ ANDROID_API virtual void destroy();
+
private:
friend class AnimationHandle;
void addAnimationHandle(AnimationHandle* handle);