Fix buffer producer being blocked when dequeing buffers.
This cl fixes 2 problems: * Despite being documented otherwise, GLConsumer::updateTexImage doesn't actually acquire most recently queued buffer, but next buffer. This cl modifies EglSurfaceTexture::updateTexture to call GLConsumer::updateTexImage repeatedly to actually get to most recent buffer. * By default the buffer producer allows to dequeue only 1 buffer, this cl modifies the limit to maximum of 64, allowing to utilize maximal size of buffer queue. Bug: 349794105 Test: manually with glasses core and benchmarking app Test: atest virtual_camera_tests CtsVirtualDevicesCameraTestCases CtsVirtualDevicesCameraCtsTestCases Flag: EXEMPT bugfix Change-Id: I85c1cba682ea29d5b0ad51ea258a76e2cab06f5f
Loading
Please register or sign in to comment