Internal change.
PiperOrigin-RevId: 526892368
This commit is contained in:
parent
56df724c36
commit
0fc6118680
|
@ -231,7 +231,7 @@ public class GlSurfaceViewRenderer implements GLSurfaceView.Renderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns the texture left, right, bottom, and top visible boundaries. */
|
/** Returns the texture left, right, bottom, and top visible boundaries. */
|
||||||
protected float[] calculateTextureBoundary() {
|
public float[] calculateTextureBoundary() {
|
||||||
// TODO: compute scale from surfaceTexture size.
|
// TODO: compute scale from surfaceTexture size.
|
||||||
float scaleWidth = frameWidth > 0 ? (float) surfaceWidth / (float) frameWidth : 1.0f;
|
float scaleWidth = frameWidth > 0 ? (float) surfaceWidth / (float) frameWidth : 1.0f;
|
||||||
float scaleHeight = frameHeight > 0 ? (float) surfaceHeight / (float) frameHeight : 1.0f;
|
float scaleHeight = frameHeight > 0 ? (float) surfaceHeight / (float) frameHeight : 1.0f;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user