Merge "Flag window animation transactions as animations." into jb-mr1-dev
This commit is contained in:
@@ -245,6 +245,7 @@ public class Surface implements Parcelable {
|
|||||||
|
|
||||||
private static native void nativeOpenTransaction();
|
private static native void nativeOpenTransaction();
|
||||||
private static native void nativeCloseTransaction();
|
private static native void nativeCloseTransaction();
|
||||||
|
private static native void nativeSetAnimationTransaction();
|
||||||
|
|
||||||
private native void nativeSetLayer(int zorder);
|
private native void nativeSetLayer(int zorder);
|
||||||
private native void nativeSetPosition(float x, float y);
|
private native void nativeSetPosition(float x, float y);
|
||||||
@@ -525,6 +526,11 @@ public class Surface implements Parcelable {
|
|||||||
nativeCloseTransaction();
|
nativeCloseTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** flag the transaction as an animation @hide */
|
||||||
|
public static void setAnimationTransaction() {
|
||||||
|
nativeSetAnimationTransaction();
|
||||||
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public void setLayer(int zorder) {
|
public void setLayer(int zorder) {
|
||||||
nativeSetLayer(zorder);
|
nativeSetLayer(zorder);
|
||||||
|
|||||||
@@ -526,6 +526,10 @@ static void nativeCloseTransaction(JNIEnv* env, jclass clazz) {
|
|||||||
SurfaceComposerClient::closeGlobalTransaction();
|
SurfaceComposerClient::closeGlobalTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void nativeSetAnimationTransaction(JNIEnv* env, jclass clazz) {
|
||||||
|
SurfaceComposerClient::setAnimationTransaction();
|
||||||
|
}
|
||||||
|
|
||||||
static void nativeSetLayer(JNIEnv* env, jobject surfaceObj, jint zorder) {
|
static void nativeSetLayer(JNIEnv* env, jobject surfaceObj, jint zorder) {
|
||||||
sp<SurfaceControl> surface(getSurfaceControl(env, surfaceObj));
|
sp<SurfaceControl> surface(getSurfaceControl(env, surfaceObj));
|
||||||
if (surface == NULL) return;
|
if (surface == NULL) return;
|
||||||
@@ -819,6 +823,8 @@ static JNINativeMethod gSurfaceMethods[] = {
|
|||||||
(void*)nativeOpenTransaction },
|
(void*)nativeOpenTransaction },
|
||||||
{"nativeCloseTransaction", "()V",
|
{"nativeCloseTransaction", "()V",
|
||||||
(void*)nativeCloseTransaction },
|
(void*)nativeCloseTransaction },
|
||||||
|
{"nativeSetAnimationTransaction", "()V",
|
||||||
|
(void*)nativeSetAnimationTransaction },
|
||||||
{"nativeSetLayer", "(I)V",
|
{"nativeSetLayer", "(I)V",
|
||||||
(void*)nativeSetLayer },
|
(void*)nativeSetLayer },
|
||||||
{"nativeSetPosition", "(FF)V",
|
{"nativeSetPosition", "(FF)V",
|
||||||
|
|||||||
@@ -618,6 +618,7 @@ public class WindowAnimator {
|
|||||||
if (WindowManagerService.SHOW_TRANSACTIONS) Slog.i(
|
if (WindowManagerService.SHOW_TRANSACTIONS) Slog.i(
|
||||||
TAG, ">>> OPEN TRANSACTION animateLocked");
|
TAG, ">>> OPEN TRANSACTION animateLocked");
|
||||||
Surface.openTransaction();
|
Surface.openTransaction();
|
||||||
|
Surface.setAnimationTransaction();
|
||||||
try {
|
try {
|
||||||
updateAppWindowsLocked();
|
updateAppWindowsLocked();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user