From 499dd5b84e889ea68f4aed8b16368ccaa6b1544c Mon Sep 17 00:00:00 2001 From: tofunmi Date: Mon, 31 Jul 2023 10:17:51 +0100 Subject: [PATCH] remove redundant identity setting in the OverlayShaderProgram PiperOrigin-RevId: 552416606 --- .../main/java/androidx/media3/effect/OverlayShaderProgram.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/libraries/effect/src/main/java/androidx/media3/effect/OverlayShaderProgram.java b/libraries/effect/src/main/java/androidx/media3/effect/OverlayShaderProgram.java index c6526dc881..ac812c5df4 100644 --- a/libraries/effect/src/main/java/androidx/media3/effect/OverlayShaderProgram.java +++ b/libraries/effect/src/main/java/androidx/media3/effect/OverlayShaderProgram.java @@ -151,7 +151,6 @@ import com.google.common.collect.ImmutableList; // Scale the image. Pair 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 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,