Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 759f0a85 authored by Jan Sebechlebsky's avatar Jan Sebechlebsky Committed by Ján Sebechlebský
Browse files

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
parent c961ed17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment