Use super class for toGlProcessor in RgbFilter.
PiperOrigin-RevId: 472405147
This commit is contained in:
parent
672405afdf
commit
91e1209e82
@ -21,7 +21,6 @@ import static androidx.media3.common.util.Assertions.checkState;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import androidx.media3.common.FrameProcessingException;
|
import androidx.media3.common.FrameProcessingException;
|
||||||
import androidx.media3.common.util.UnstableApi;
|
import androidx.media3.common.util.UnstableApi;
|
||||||
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. */
|
||||||
@ -95,10 +94,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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user