Remove unnecessary types in lambda

PiperOrigin-RevId: 559745329
This commit is contained in:
claincly 2023-08-24 07:19:51 -07:00 committed by Copybara-Service
parent a6f9fefb88
commit 8c1bedb483

View file

@ -40,7 +40,6 @@ import androidx.media3.common.C;
import androidx.media3.common.ColorInfo; import androidx.media3.common.ColorInfo;
import androidx.media3.common.Effect; import androidx.media3.common.Effect;
import androidx.media3.common.GlObjectsProvider; import androidx.media3.common.GlObjectsProvider;
import androidx.media3.common.GlTextureInfo;
import androidx.media3.common.VideoFrameProcessingException; import androidx.media3.common.VideoFrameProcessingException;
import androidx.media3.common.util.GlUtil; import androidx.media3.common.util.GlUtil;
import androidx.media3.common.util.Util; import androidx.media3.common.util.Util;
@ -648,11 +647,10 @@ public final class DefaultVideoCompositorPixelTest {
compositorEnded.countDown(); compositorEnded.countDown();
} }
}, },
/* textureOutputListener= */ (GlTextureInfo outputTexture, /* textureOutputListener= */ (outputTexture,
long presentationTimeUs, presentationTimeUs,
DefaultVideoFrameProcessor.ReleaseOutputTextureCallback releaseOutputTextureCallback,
releaseOutputTextureCallback, syncObject) -> {
long syncObject) -> {
if (!useSharedExecutor) { if (!useSharedExecutor) {
GlUtil.awaitSyncObject(syncObject); GlUtil.awaitSyncObject(syncObject);
} }
@ -793,11 +791,10 @@ public final class DefaultVideoCompositorPixelTest {
new DefaultVideoFrameProcessor.Factory.Builder() new DefaultVideoFrameProcessor.Factory.Builder()
.setGlObjectsProvider(glObjectsProvider) .setGlObjectsProvider(glObjectsProvider)
.setTextureOutput( .setTextureOutput(
/* textureOutputListener= */ (GlTextureInfo outputTexture, /* textureOutputListener= */ (outputTexture,
long presentationTimeUs, presentationTimeUs,
DefaultVideoFrameProcessor.ReleaseOutputTextureCallback releaseOutputTextureCallback,
releaseOutputTextureCallback, syncObject) -> {
long syncObject) -> {
GlUtil.awaitSyncObject(syncObject); GlUtil.awaitSyncObject(syncObject);
textureBitmapReader.readBitmapUnpremultipliedAlpha( textureBitmapReader.readBitmapUnpremultipliedAlpha(
outputTexture, presentationTimeUs); outputTexture, presentationTimeUs);