Commit 43aa89aa by Googler Committed by Marc Baechinger

Fix ChainingGlTextureProcessorListener field name.

PiperOrigin-RevId: 466735554
parent 70972bba
...@@ -41,7 +41,7 @@ import java.util.Queue; ...@@ -41,7 +41,7 @@ import java.util.Queue;
private final Queue<Pair<TextureInfo, Long>> availableFrames; private final Queue<Pair<TextureInfo, Long>> availableFrames;
@GuardedBy("this") @GuardedBy("this")
private int nextGlTextureProcessorInputCapacity; private int consumingGlTextureProcessorInputCapacity;
/** /**
* Creates a new instance. * Creates a new instance.
...@@ -69,7 +69,7 @@ import java.util.Queue; ...@@ -69,7 +69,7 @@ import java.util.Queue;
public synchronized void onReadyToAcceptInputFrame() { public synchronized void onReadyToAcceptInputFrame() {
@Nullable Pair<TextureInfo, Long> pendingFrame = availableFrames.poll(); @Nullable Pair<TextureInfo, Long> pendingFrame = availableFrames.poll();
if (pendingFrame == null) { if (pendingFrame == null) {
nextGlTextureProcessorInputCapacity++; consumingGlTextureProcessorInputCapacity++;
return; return;
} }
...@@ -94,12 +94,12 @@ import java.util.Queue; ...@@ -94,12 +94,12 @@ import java.util.Queue;
@Override @Override
public synchronized void onOutputFrameAvailable( public synchronized void onOutputFrameAvailable(
TextureInfo outputTexture, long presentationTimeUs) { TextureInfo outputTexture, long presentationTimeUs) {
if (nextGlTextureProcessorInputCapacity > 0) { if (consumingGlTextureProcessorInputCapacity > 0) {
frameProcessingTaskExecutor.submit( frameProcessingTaskExecutor.submit(
() -> () ->
consumingGlTextureProcessor.queueInputFrame( consumingGlTextureProcessor.queueInputFrame(
/* inputTexture= */ outputTexture, presentationTimeUs)); /* inputTexture= */ outputTexture, presentationTimeUs));
nextGlTextureProcessorInputCapacity--; consumingGlTextureProcessorInputCapacity--;
} else { } else {
availableFrames.add(new Pair<>(outputTexture, presentationTimeUs)); availableFrames.add(new Pair<>(outputTexture, presentationTimeUs));
} }
......
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