summaryrefslogtreecommitdiff
path: root/libs/hwui/Animator.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-09-05 15:57:47 -0700
committerJohn Reck <jreck@google.com>2014-09-05 15:58:26 -0700
commitf5945a0c8bb868f978d9d0d22043a8b44464a86e (patch)
tree225f4979dc6b8e0290307194fa1ec0c3a48ddcff /libs/hwui/Animator.h
parentc237555c6cb89c347acf13eba45b875946473501 (diff)
Disable RT-anim for AnimatorSet
Bug: 17317184 Unfortunately this will disable *all* RT animations in a scene, but we don't have more selective targetting currently Change-Id: I57e1c0ae43957f45229473bdcdaf34c05825fab7
Diffstat (limited to 'libs/hwui/Animator.h')
-rw-r--r--libs/hwui/Animator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/Animator.h b/libs/hwui/Animator.h
index 1ab6235bb2d7..35a4a09c287f 100644
--- a/libs/hwui/Animator.h
+++ b/libs/hwui/Animator.h
@@ -53,6 +53,10 @@ public:
mListener = listener;
}
AnimationListener* listener() { return mListener.get(); }
+ ANDROID_API void setAllowRunningAsync(bool mayRunAsync) {
+ mMayRunAsync = mayRunAsync;
+ }
+ bool mayRunAsync() { return mMayRunAsync; }
ANDROID_API void start() { mStagingPlayState = RUNNING; onStagingPlayStateChanged(); }
ANDROID_API void end() { mStagingPlayState = FINISHED; onStagingPlayStateChanged(); }
@@ -101,6 +105,7 @@ protected:
nsecs_t mStartTime;
nsecs_t mDuration;
nsecs_t mStartDelay;
+ bool mMayRunAsync;
sp<AnimationListener> mListener;