summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2013-08-08 09:56:57 -0700
committerChet Haase <chet@google.com>2013-08-09 15:05:14 -0700
commit2632b5d0d2c307f28bd3416ca6414d6cc1e2ffdc (patch)
treed8eb96edee2c62d076d52c5578309b2ddf6fb027 /core/java/android
parent4bcc8ee682bb879f1020942be03616b506d2c802 (diff)
Reduce amount of invalidation when old-style animations are running
Previously, old animations (view.animation.*) would cause invalidations on both the area of the child view and then the entire parent area. There's no reason for the second invalidation; only the child area need be redrawn. Issue #10229470 Old animation code in View.draw() may be invalidating too much Change-Id: I4d0d16321e20b2f34dc579eacf5d3841aed33d6d
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/View.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 3dff1b030041..7a8289276ea4 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -14013,10 +14013,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
if (more && hardwareAccelerated) {
- // invalidation is the trigger to recreate display lists, so if we're using
- // display lists to render, force an invalidate to allow the animation to
- // continue drawing another frame
- parent.invalidate(true);
if (a.hasAlpha() && (mPrivateFlags & PFLAG_ALPHA_SET) == PFLAG_ALPHA_SET) {
// alpha animations should cause the child to recreate its display list
invalidate(true);