Allow sink provider to be flushed before initialized

VideoSink.initialize will be added in a next CL and we want to allow
flush to be called before and after initialize.

PiperOrigin-RevId: 624946957
This commit is contained in:
kimvde 2024-04-15 07:02:44 -07:00 committed by Copybara-Service
parent 00e3753d62
commit 41d5571660

View File

@ -505,6 +505,9 @@ public final class CompositingVideoSinkProvider
}
private void flush() {
if (!isInitialized()) {
return;
}
pendingFlushCount++;
// Flush the render control now to ensure it has no data, eg calling isReady() must return false
// and render() should not render any frames.