summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Kevin DuBois <kevindubois@google.com> 2019-05-06 16:46:45 -0700
committer Kevin DuBois <kevindubois@google.com> 2019-05-09 09:03:31 -0700
commit26afc788434bf0f120db2fbd980d557f07bd1283 (patch)
tree6f25c517e9d5350a6f8aad1b9bd90033050df9df /opengl/libagl/array.cpp
parentc81a799672f6e5a97b8229bc9fbcdecfd9c4d6d5 (diff)
sf: avoid lock on main thread during luma calc
The luma calculation operation was previously done while holding a lock that was also used to protect the request to collect the next sample. When the main thread would request the next sample, it could stall waiting on the longer luma calculation to complete. This patch refactors the sampling request locking mechanisms so sampling request signalling is protected by one lock, and the members needed during the sampling thread operations are protected by another lock. Fixes: http://b/132110951 Test: collect traces during during problematic animation (agsa initial query for info) and verify problem went away Test: visually inspect jank during agsa continued conversation Test: libgui#RegionSamplingTest Test: monkey 6000 event inject Change-Id: I291d6bcb80d0588f2e1f3689bfdd4b3434132e90
Diffstat (limited to 'opengl/libagl/array.cpp')
0 files changed, 0 insertions, 0 deletions