From 917a3b34a33f703503d05aaef4af955a09553703 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Mon, 17 Sep 2012 19:00:19 -0700 Subject: [PATCH] SurfaceTexture: remove call to doGLFenceWait This call is no longer needed as the default behavior of the native SurfaceTexture class is to do the wait whenever updateTexImage is called. Change-Id: I995686a5989409e21b00fac913bd33c11f806998 --- core/jni/android/graphics/SurfaceTexture.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/jni/android/graphics/SurfaceTexture.cpp b/core/jni/android/graphics/SurfaceTexture.cpp index bc58813d6efed..c48b974fe7586 100644 --- a/core/jni/android/graphics/SurfaceTexture.cpp +++ b/core/jni/android/graphics/SurfaceTexture.cpp @@ -223,10 +223,6 @@ static void SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz) } else if (err < 0) { 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)