Commit c0ad9f51 by leonwind Committed by Marc Baechinger

Use super class for toGlProcessor in RgbFilter.

PiperOrigin-RevId: 472405147
parent daa77da1
...@@ -20,7 +20,6 @@ import static com.google.android.exoplayer2.util.Assertions.checkState; ...@@ -20,7 +20,6 @@ import static com.google.android.exoplayer2.util.Assertions.checkState;
import android.content.Context; import android.content.Context;
import androidx.media3.common.FrameProcessingException; import androidx.media3.common.FrameProcessingException;
import com.google.common.collect.ImmutableList;
import org.checkerframework.checker.nullness.qual.MonotonicNonNull; import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
/** Provides common color filters. */ /** Provides common color filters. */
...@@ -93,10 +92,6 @@ public class RgbFilter implements RgbMatrix { ...@@ -93,10 +92,6 @@ public class RgbFilter implements RgbMatrix {
public MatrixTransformationProcessor toGlTextureProcessor(Context context, boolean useHdr) public MatrixTransformationProcessor toGlTextureProcessor(Context context, boolean useHdr)
throws FrameProcessingException { throws FrameProcessingException {
checkForConsistentHdrSetting(useHdr); checkForConsistentHdrSetting(useHdr);
return MatrixTransformationProcessor.create( return RgbMatrix.super.toGlTextureProcessor(context, useHdr);
context,
/* matrixTransformations= */ ImmutableList.of(),
/* rgbMatrices= */ ImmutableList.of(this),
useHdr);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment