Merge "SurfaceTexture: add updateTexImage synchronization" into jb-mr1-dev

This commit is contained in:
Jamie Gennis
2012-09-10 13:31:39 -07:00
committed by Android (Google) Code Review

View File

@@ -223,6 +223,10 @@ static void SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz)
} else if (err < 0) { } else if (err < 0) {
jniThrowRuntimeException(env, "Error during updateTexImage (see logcat for details)"); jniThrowRuntimeException(env, "Error during updateTexImage (see logcat for details)");
} }
err = surfaceTexture->doGLFenceWait();
if (err != NO_ERROR) {
jniThrowRuntimeException(env, "Error waiting for fence (see logcat for details)");
}
} }
static jint SurfaceTexture_detachFromGLContext(JNIEnv* env, jobject thiz) static jint SurfaceTexture_detachFromGLContext(JNIEnv* env, jobject thiz)