Remove FrameEditor reference.

PiperOrigin-RevId: 436702840
This commit is contained in:
hschlueter 2022-03-23 11:25:58 +00:00 committed by Ian Baker
parent fe8996e634
commit bda6604757

View File

@ -109,7 +109,7 @@ import org.checkerframework.dataflow.qual.Pure;
|| inputFormat.height != encoderSupportedFormat.height || inputFormat.height != encoderSupportedFormat.height
|| inputFormat.width != encoderSupportedFormat.width || inputFormat.width != encoderSupportedFormat.width
|| scaleToFitFrameProcessor.shouldProcess() || scaleToFitFrameProcessor.shouldProcess()
|| shouldAlwaysUseFrameEditor()) { || shouldAlwaysUseFrameProcessorChain()) {
// TODO(b/218488308): Allow the final GlFrameProcessor to be re-configured if its output size // TODO(b/218488308): Allow the final GlFrameProcessor to be re-configured if its output size
// has to change due to encoder fallback or append another GlFrameProcessor. // has to change due to encoder fallback or append another GlFrameProcessor.
frameProcessorSizes.set( frameProcessorSizes.set(
@ -287,8 +287,8 @@ import org.checkerframework.dataflow.qual.Pure;
.build(); .build();
} }
/** Always use {@link FrameEditor} to work around device-specific encoder issues. */ /** Always use {@link FrameProcessorChain} to work around device-specific encoder issues. */
private static boolean shouldAlwaysUseFrameEditor() { private static boolean shouldAlwaysUseFrameProcessorChain() {
switch (Util.MODEL) { switch (Util.MODEL) {
case "XT1635-02": case "XT1635-02":
case "Nexus 5": case "Nexus 5":