Internal change.

PiperOrigin-RevId: 526892368
This commit is contained in:
MediaPipe Team 2023-04-25 01:28:41 -07:00 committed by Copybara-Service
parent 56df724c36
commit 0fc6118680

View File

@ -231,7 +231,7 @@ public class GlSurfaceViewRenderer implements GLSurfaceView.Renderer {
}
/** Returns the texture left, right, bottom, and top visible boundaries. */
protected float[] calculateTextureBoundary() {
public float[] calculateTextureBoundary() {
// TODO: compute scale from surfaceTexture size.
float scaleWidth = frameWidth > 0 ? (float) surfaceWidth / (float) frameWidth : 1.0f;
float scaleHeight = frameHeight > 0 ? (float) surfaceHeight / (float) frameHeight : 1.0f;