mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove unused setter in PlaybackVideoGraphWrapper.Builder
PiperOrigin-RevId: 752639277
This commit is contained in:
parent
ecfd9d1e92
commit
48832cbbc4
@ -110,8 +110,6 @@ public final class PlaybackVideoGraphWrapper implements VideoGraph.Listener {
|
|||||||
public static final class Builder {
|
public static final class Builder {
|
||||||
private final Context context;
|
private final Context context;
|
||||||
private final VideoFrameReleaseControl videoFrameReleaseControl;
|
private final VideoFrameReleaseControl videoFrameReleaseControl;
|
||||||
|
|
||||||
private VideoFrameProcessor.@MonotonicNonNull Factory videoFrameProcessorFactory;
|
|
||||||
private VideoGraph.@MonotonicNonNull Factory videoGraphFactory;
|
private VideoGraph.@MonotonicNonNull Factory videoGraphFactory;
|
||||||
private List<Effect> compositionEffects;
|
private List<Effect> compositionEffects;
|
||||||
private VideoCompositorSettings compositorSettings;
|
private VideoCompositorSettings compositorSettings;
|
||||||
@ -130,23 +128,6 @@ public final class PlaybackVideoGraphWrapper implements VideoGraph.Listener {
|
|||||||
clock = Clock.DEFAULT;
|
clock = Clock.DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the {@link VideoFrameProcessor.Factory} that will be used for creating {@link
|
|
||||||
* VideoFrameProcessor} instances.
|
|
||||||
*
|
|
||||||
* <p>By default, the {@code DefaultVideoFrameProcessor.Factory} with its default values will be
|
|
||||||
* used.
|
|
||||||
*
|
|
||||||
* @param videoFrameProcessorFactory The {@link VideoFrameProcessor.Factory}.
|
|
||||||
* @return This builder, for convenience.
|
|
||||||
*/
|
|
||||||
@CanIgnoreReturnValue
|
|
||||||
public Builder setVideoFrameProcessorFactory(
|
|
||||||
VideoFrameProcessor.Factory videoFrameProcessorFactory) {
|
|
||||||
this.videoFrameProcessorFactory = videoFrameProcessorFactory;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the {@link VideoGraph.Factory} that will be used for creating {@link VideoGraph}
|
* Sets the {@link VideoGraph.Factory} that will be used for creating {@link VideoGraph}
|
||||||
* instances.
|
* instances.
|
||||||
@ -269,11 +250,7 @@ public final class PlaybackVideoGraphWrapper implements VideoGraph.Listener {
|
|||||||
checkState(!built);
|
checkState(!built);
|
||||||
|
|
||||||
if (videoGraphFactory == null) {
|
if (videoGraphFactory == null) {
|
||||||
if (videoFrameProcessorFactory == null) {
|
videoGraphFactory = new ReflectiveSingleInputVideoGraphFactory(enableReplayableCache);
|
||||||
videoFrameProcessorFactory =
|
|
||||||
new ReflectiveDefaultVideoFrameProcessorFactory(enableReplayableCache);
|
|
||||||
}
|
|
||||||
videoGraphFactory = new ReflectiveSingleInputVideoGraphFactory(videoFrameProcessorFactory);
|
|
||||||
}
|
}
|
||||||
PlaybackVideoGraphWrapper playbackVideoGraphWrapper = new PlaybackVideoGraphWrapper(this);
|
PlaybackVideoGraphWrapper playbackVideoGraphWrapper = new PlaybackVideoGraphWrapper(this);
|
||||||
built = true;
|
built = true;
|
||||||
@ -1182,9 +1159,9 @@ public final class PlaybackVideoGraphWrapper implements VideoGraph.Listener {
|
|||||||
|
|
||||||
private final VideoFrameProcessor.Factory videoFrameProcessorFactory;
|
private final VideoFrameProcessor.Factory videoFrameProcessorFactory;
|
||||||
|
|
||||||
public ReflectiveSingleInputVideoGraphFactory(
|
public ReflectiveSingleInputVideoGraphFactory(boolean enableReplayableCache) {
|
||||||
VideoFrameProcessor.Factory videoFrameProcessorFactory) {
|
this.videoFrameProcessorFactory =
|
||||||
this.videoFrameProcessorFactory = videoFrameProcessorFactory;
|
new ReflectiveDefaultVideoFrameProcessorFactory(enableReplayableCache);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user