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

Commit 06e87407 authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Fix the issue where TextureView stuck if the producer side is too fast."

parents 86b56902 0bc6eb30
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -649,6 +649,7 @@ static void android_view_GLES20Canvas_updateTextureLayer(JNIEnv* env, jobject cl
    float transform[16];
    sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, surface));

    while (surfaceTexture->getQueuedCount() > 0)
        surfaceTexture->updateTexImage();
    surfaceTexture->getTransformMatrix(transform);
    GLenum renderTarget = surfaceTexture->getCurrentTextureTarget();