summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueProducer.cpp
diff options
context:
space:
mode:
author Kevin DuBois <kevindubois@google.com> 2019-04-29 10:09:43 -0700
committer Kevin DuBois <kevindubois@google.com> 2019-05-02 15:51:44 -0700
commit4efd1f505ce5587bba57e79dfb54eb1daff59eec (patch)
tree6f2ed1bdc6fd2715239755d6068c21b779a39814 /libs/gui/BufferQueueProducer.cpp
parent501604c5fa4f485ae96470e6e2ba71a8c98b9c8f (diff)
sf: reuse luma sampling buffer when available
Reuse the luma sampling buffer when available, saving a frequent buffer reallocation. Depending on driver refcounting behavior, this could have resulted in the buffer free on the SF main thread (and typically did on referenced device, costing about ~500us @10hz). Test: verify luma sampling work reduces from ~2ms -> 1.5ms Test: RegionSamplingTest in libgui Fixes: 131416627 Change-Id: I8e6d57ae25bd37ceec828c82796f0f4f8f45636e
Diffstat (limited to 'libs/gui/BufferQueueProducer.cpp')
0 files changed, 0 insertions, 0 deletions