summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2019-08-12 11:23:06 -0700
committer chaviw <chaviw@google.com> 2019-08-15 12:54:05 -0700
commit49a108cda1eda5ce10b7532bf56482d80ae90afa (patch)
tree0054605dc27b8a6ac651c2f0341ccceb35bdd518 /services/surfaceflinger/RegionSamplingThread.cpp
parentc603c81ddb3cbe76aa4742162151792ac0d52d13 (diff)
Latch and relase buffers for offscreen layers on main thread.
The current code was calling fakeVsync, which was latching and releasing buffers on a binder thread when a new frame arrived. This was causing a race with the latchBuffer on the main thread. This change calls latchAndReleaseBuffer on the main thread for offscreen layers to ensure we don't block dequeueBuffer but also don't race the other latchBuffer call. Fixes: 139118508 Test: Race was only reproducible in monkey tests Change-Id: Ie7d87aa775c215de3fb2322b73849402596cc3fc
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions