commit | 4efd1f505ce5587bba57e79dfb54eb1daff59eec | [log] [tgz] |
---|---|---|
author | Kevin DuBois <kevindubois@google.com> | Mon Apr 29 10:09:43 2019 -0700 |
committer | Kevin DuBois <kevindubois@google.com> | Thu May 02 15:51:44 2019 -0700 |
tree | 6f2ed1bdc6fd2715239755d6068c21b779a39814 | |
parent | 501604c5fa4f485ae96470e6e2ba71a8c98b9c8f [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