Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cae2e388 authored by Jamie Gennis's avatar Jamie Gennis Committed by Android (Google) Code Review
Browse files

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

parents dcc036c5 f09263e9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -223,6 +223,10 @@ 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)