Commit 6dcb018d by tofunmi Committed by Rohit Singh

Remove deprecated constructor in DefaultVideoFrameProcessor.Factory

Remove deprecated factory constructor and replace all call instances of it.

PiperOrigin-RevId: 525476062
parent 3bcdac99
......@@ -123,7 +123,7 @@ public class DefaultVideoFrameProcessorImageFrameOutputTest {
String testId) {
return new VideoFrameProcessorTestRunner.Builder()
.setTestId(testId)
.setVideoFrameProcessorFactory(new DefaultVideoFrameProcessor.Factory())
.setVideoFrameProcessorFactory(new DefaultVideoFrameProcessor.Factory.Builder().build())
.setIsInputTextureExternal(false)
.setOnOutputFrameAvailableListener(
unused -> checkNotNull(framesProduced).incrementAndGet());
......
......@@ -506,7 +506,7 @@ public final class DefaultVideoFrameProcessorPixelTest {
String testId) {
return new VideoFrameProcessorTestRunner.Builder()
.setTestId(testId)
.setVideoFrameProcessorFactory(new DefaultVideoFrameProcessor.Factory())
.setVideoFrameProcessorFactory(new DefaultVideoFrameProcessor.Factory.Builder().build())
.setVideoAssetPath(INPUT_SDR_MP4_ASSET_STRING);
}
......
......@@ -292,7 +292,8 @@ public final class DefaultVideoFrameProcessorVideoFrameReleaseTest {
CountDownLatch videoFrameProcessingEndedCountDownLatch = new CountDownLatch(1);
defaultVideoFrameProcessor =
checkNotNull(
new DefaultVideoFrameProcessor.Factory()
new DefaultVideoFrameProcessor.Factory.Builder()
.build()
.create(
getApplicationContext(),
ImmutableList.of((GlEffect) (context, useHdr) -> blankFrameProducer),
......
......@@ -141,18 +141,6 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
this.textureOutputListener = textureOutputListener;
}
// TODO(276913828): Remove and change all calls to a builder.
/**
* @deprecated Use {@link DefaultVideoFrameProcessor.Factory.Builder} instead.
*/
@Deprecated
public Factory() {
this(
/* enableColorTransfers= */ true,
GlObjectsProvider.DEFAULT,
/* textureOutputListener= */ null);
}
/**
* {@inheritDoc}
*
......
......@@ -213,6 +213,6 @@ public final class ToneMapHdrToSdrUsingOpenGlPixelTest {
String testId) {
return new VideoFrameProcessorTestRunner.Builder()
.setTestId(testId)
.setVideoFrameProcessorFactory(new DefaultVideoFrameProcessor.Factory());
.setVideoFrameProcessorFactory(new DefaultVideoFrameProcessor.Factory.Builder().build());
}
}
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