Skip to content

Commit cae2e38

Browse files
Jamie GennisAndroid (Google) Code Review
authored andcommitted
Merge "SurfaceTexture: add updateTexImage synchronization" into jb-mr1-dev
2 parents dcc036c + f09263e commit cae2e38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/jni/android/graphics/SurfaceTexture.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ static void SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz)
223223
} else if (err < 0) {
224224
jniThrowRuntimeException(env, "Error during updateTexImage (see logcat for details)");
225225
}
226+
err = surfaceTexture->doGLFenceWait();
227+
if (err != NO_ERROR) {
228+
jniThrowRuntimeException(env, "Error waiting for fence (see logcat for details)");
229+
}
226230
}
227231

228232
static jint SurfaceTexture_detachFromGLContext(JNIEnv* env, jobject thiz)

0 commit comments

Comments
 (0)