
If an OpenGL call blocks because the encoder's input surface is full, this will now block the background thread while the main thread can continue querying encoder output and free up encoder capacity until it accepts more input unblocking the background thread. PiperOrigin-RevId: 433283287