summaryrefslogtreecommitdiffstats
path: root/core/java/android/animation
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-03-23 17:14:34 -0700
committerJeff Brown <jeffbrown@google.com>2012-03-29 13:10:55 -0700
commitebb2d8d708c5c58c79ae88ac2bd10450a856f702 (patch)
tree7ea7f937f0a4b172ade6a5d310041fe5b6893672 /core/java/android/animation
parent70825161b5bf51ed48319e142751a9c88b104994 (diff)
downloadframeworks_base-ebb2d8d708c5c58c79ae88ac2bd10450a856f702.zip
frameworks_base-ebb2d8d708c5c58c79ae88ac2bd10450a856f702.tar.gz
frameworks_base-ebb2d8d708c5c58c79ae88ac2bd10450a856f702.tar.bz2
Enable vsync traversals by default.
Improved how the various callbacks are managed and sequenced to reduce code duplication. Added a heuristic to avoid postponing traversals until the next vsync frame if we did not actually do any drawing during the previous frame. This helps in the very common case where drawing occurs in response to input. Change-Id: I277d9eeaf50408f8745a3cfd181db1d140770658
Diffstat (limited to 'core/java/android/animation')
-rwxr-xr-xcore/java/android/animation/ValueAnimator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/animation/ValueAnimator.java b/core/java/android/animation/ValueAnimator.java
index e2b8ce4..fade20c 100755
--- a/core/java/android/animation/ValueAnimator.java
+++ b/core/java/android/animation/ValueAnimator.java
@@ -647,7 +647,7 @@ public class ValueAnimator extends Animator {
// onAnimate to process the next frame of the animations.
if (!mAnimationScheduled
&& (!mAnimations.isEmpty() || !mDelayedAnims.isEmpty())) {
- mChoreographer.postAnimationCallback(this, null);
+ mChoreographer.postCallback(Choreographer.CALLBACK_ANIMATION, this, null);
mAnimationScheduled = true;
}
}