diff options
author | Jamie Gennis <jgennis@google.com> | 2012-10-15 19:14:58 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2012-10-15 19:19:50 -0700 |
commit | b6ce6e42cc89864354c7ecb9ae80504a6c9dddcf (patch) | |
tree | 80559f92f7ee006248197baa3aa5a1f4444ec5b3 /core/jni | |
parent | d86a532c5271dfbfe7378ddeb6700fafd92ecbcc (diff) | |
download | frameworks_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/jni')
-rw-r--r-- | core/jni/android_view_Surface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/jni/android_view_Surface.cpp b/core/jni/android_view_Surface.cpp index 4982f31..531445f 100644 --- a/core/jni/android_view_Surface.cpp +++ b/core/jni/android_view_Surface.cpp @@ -526,6 +526,10 @@ static void nativeCloseTransaction(JNIEnv* env, jclass clazz) { SurfaceComposerClient::closeGlobalTransaction(); } +static void nativeSetAnimationTransaction(JNIEnv* env, jclass clazz) { + SurfaceComposerClient::setAnimationTransaction(); +} + static void nativeSetLayer(JNIEnv* env, jobject surfaceObj, jint zorder) { sp<SurfaceControl> surface(getSurfaceControl(env, surfaceObj)); if (surface == NULL) return; @@ -819,6 +823,8 @@ static JNINativeMethod gSurfaceMethods[] = { (void*)nativeOpenTransaction }, {"nativeCloseTransaction", "()V", (void*)nativeCloseTransaction }, + {"nativeSetAnimationTransaction", "()V", + (void*)nativeSetAnimationTransaction }, {"nativeSetLayer", "(I)V", (void*)nativeSetLayer }, {"nativeSetPosition", "(FF)V", |