Fix Dackka/Metalava errors in the effects module
Public methods may only refer to public types in their signature. This change ensures that by switching to a public supertype everywhere. PiperOrigin-RevId: 485568625
This commit is contained in:
parent
91b286c4f8
commit
40b5cba3c8
@ -44,7 +44,7 @@ public interface ColorLut extends GlEffect {
|
|||||||
/** This method must be executed on the same thread as other GL commands. */
|
/** This method must be executed on the same thread as other GL commands. */
|
||||||
@Override
|
@Override
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
default ColorLutProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
default SingleFrameGlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
||||||
throws FrameProcessingException {
|
throws FrameProcessingException {
|
||||||
return new ColorLutProcessor(context, /* colorLut= */ this, useHdr);
|
return new ColorLutProcessor(context, /* colorLut= */ this, useHdr);
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ public class HslAdjustment implements GlEffect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HslProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
public SingleFrameGlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
||||||
throws FrameProcessingException {
|
throws FrameProcessingException {
|
||||||
return new HslProcessor(context, /* hslAdjustment= */ this, useHdr);
|
return new HslProcessor(context, /* hslAdjustment= */ this, useHdr);
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ public class RgbFilter implements RgbMatrix {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MatrixTextureProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
public SingleFrameGlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
||||||
throws FrameProcessingException {
|
throws FrameProcessingException {
|
||||||
checkForConsistentHdrSetting(useHdr);
|
checkForConsistentHdrSetting(useHdr);
|
||||||
return RgbMatrix.super.toGlTextureProcessor(context, useHdr);
|
return RgbMatrix.super.toGlTextureProcessor(context, useHdr);
|
||||||
|
@ -40,7 +40,7 @@ public interface RgbMatrix extends GlEffect {
|
|||||||
float[] getMatrix(long presentationTimeUs, boolean useHdr);
|
float[] getMatrix(long presentationTimeUs, boolean useHdr);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
default MatrixTextureProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
default SingleFrameGlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
||||||
throws FrameProcessingException {
|
throws FrameProcessingException {
|
||||||
return MatrixTextureProcessor.create(
|
return MatrixTextureProcessor.create(
|
||||||
context,
|
context,
|
||||||
|
@ -149,7 +149,7 @@ public class SingleColorLut implements ColorLut {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ColorLutProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
public SingleFrameGlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
||||||
throws FrameProcessingException {
|
throws FrameProcessingException {
|
||||||
checkState(!useHdr, "HDR is currently not supported.");
|
checkState(!useHdr, "HDR is currently not supported.");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user