mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
remove redundant identity setting in the OverlayShaderProgram
PiperOrigin-RevId: 552416606
This commit is contained in:
parent
bb699e41c9
commit
499dd5b84e
1 changed files with 0 additions and 3 deletions
|
|
@ -151,7 +151,6 @@ import com.google.common.collect.ImmutableList;
|
|||
|
||||
// Scale the image.
|
||||
Pair<Float, Float> scale = overlay.getOverlaySettings(presentationTimeUs).scale;
|
||||
Matrix.setIdentityM(scaleMatrix, MATRIX_OFFSET);
|
||||
Matrix.scaleM(
|
||||
scaleMatrix,
|
||||
MATRIX_OFFSET,
|
||||
|
|
@ -165,7 +164,6 @@ import com.google.common.collect.ImmutableList;
|
|||
// Translate the overlay within its frame.
|
||||
Pair<Float, Float> overlayAnchor =
|
||||
overlay.getOverlaySettings(presentationTimeUs).overlayAnchor;
|
||||
Matrix.setIdentityM(overlayAnchorMatrix, MATRIX_OFFSET);
|
||||
Matrix.translateM(
|
||||
overlayAnchorMatrix,
|
||||
MATRIX_OFFSET,
|
||||
|
|
@ -175,7 +173,6 @@ import com.google.common.collect.ImmutableList;
|
|||
Matrix.invertM(overlayAnchorMatrixInv, MATRIX_OFFSET, overlayAnchorMatrix, MATRIX_OFFSET);
|
||||
|
||||
// Rotate the image.
|
||||
Matrix.setIdentityM(rotateMatrix, MATRIX_OFFSET);
|
||||
Matrix.rotateM(
|
||||
rotateMatrix,
|
||||
MATRIX_OFFSET,
|
||||
|
|
|
|||
Loading…
Reference in a new issue