summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/Surface.java
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-10-15 19:14:58 -0700
committerJamie Gennis <jgennis@google.com>2012-10-15 19:19:50 -0700
commitb6ce6e42cc89864354c7ecb9ae80504a6c9dddcf (patch)
tree80559f92f7ee006248197baa3aa5a1f4444ec5b3 /core/java/android/view/Surface.java
parentd86a532c5271dfbfe7378ddeb6700fafd92ecbcc (diff)
downloadframeworks_base-b6ce6e42cc89864354c7ecb9ae80504a6c9dddcf.zip
frameworks_base-b6ce6e42cc89864354c7ecb9ae80504a6c9dddcf.tar.gz
frameworks_base-b6ce6e42cc89864354c7ecb9ae80504a6c9dddcf.tar.bz2
Flag window animation transactions as animations.
This change makes WindowManager use the new eAnimation flag when animating windows. This prevents some of the window updates from being combined with updates from prior animation frames. Bug: 7353840 Change-Id: I5a9f8fa2c1a2f5f08363a45cd9f28bb97cd77080
Diffstat (limited to 'core/java/android/view/Surface.java')
-rw-r--r--core/java/android/view/Surface.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java
index 07bb8f9..7ef6939 100644
--- a/core/java/android/view/Surface.java
+++ b/core/java/android/view/Surface.java
@@ -245,6 +245,7 @@ public class Surface implements Parcelable {
private static native void nativeOpenTransaction();
private static native void nativeCloseTransaction();
+ private static native void nativeSetAnimationTransaction();
private native void nativeSetLayer(int zorder);
private native void nativeSetPosition(float x, float y);
@@ -525,6 +526,11 @@ public class Surface implements Parcelable {
nativeCloseTransaction();
}
+ /** flag the transaction as an animation @hide */
+ public static void setAnimationTransaction() {
+ nativeSetAnimationTransaction();
+ }
+
/** @hide */
public void setLayer(int zorder) {
nativeSetLayer(zorder);