summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Yin-Chia Yeh <yinchiayeh@google.com> 2020-07-29 15:00:07 -0700
committer Yin-Chia Yeh <yinchiayeh@google.com> 2020-07-30 11:02:40 -0700
commitda2e609eb07b5afb00e72655c5b3d24c313027e4 (patch)
tree810253fd31564621ad8fbfc647ebeb78f5284426 /services/surfaceflinger/RegionSamplingThread.cpp
parentb96ea771e0c1916eeaee6b979a5f9d7848c0ed59 (diff)
Surface: do not evict outstanding buffer in onBuffersDiscarded
Due to the nature of async callback, onBufferDiscarded may arrive after a discarded slot has been occupied by a new buffer. Fix that issue by skipping currently dequeued slots. Test: Stress test script in the bug Bug: 161787265 Change-Id: Ia8fdd5f28c4b535bc5a7010b6ee0b16e375ec257
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions