internal change

PiperOrigin-RevId: 540404812
This commit is contained in:
MediaPipe Team 2023-06-14 15:57:36 -07:00 committed by Copybara-Service
parent a2d4566845
commit e02d70f8e5

View File

@ -34,6 +34,7 @@ import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import javax.annotation.Nullable;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
@ -303,7 +304,7 @@ public class GlSurfaceViewRenderer implements GLSurfaceView.Renderer {
}
// Use this when the texture is not a SurfaceTexture.
public void setNextFrame(TextureFrame frame) {
public void setNextFrame(@Nullable TextureFrame frame) {
if (surfaceTexture != null) {
Matrix.setIdentityM(textureTransformMatrix, 0 /* offset */);
}