summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Evan Rosky <erosky@google.com> 2022-05-26 16:40:33 -0700
committer Evan Rosky <erosky@google.com> 2022-06-27 10:45:16 -0700
commitb9876970422a640fd764b83862d615eb5b693d8e (patch)
tree85a7d276ddc2f66842b02f6e92e04307a8782e0a /libs/androidfw/StringPool.cpp
parent0d61ab9e5d21b62ec471b90e8883190ccf4e5444 (diff)
Drop sync buffers for subsequent sync requests
When making subsequent draw requests for the same window, drop any existing buffers since they will be replaced by the new one. Sometimes the "old" buffer will still be "in-flight" (either drawing still or in binder). So, also drop incoming buffers for seqIds that are earlier than the latest prepareSync. Additionally, immediately apply any applyWithNextDraw that were requested before the sync, but arrive after the sync started -- otherwise they can get put on pending (which waits for sync apply) and thus also block the buffer queue. Bug: 233625646 Test: run tests and check for ANRs Change-Id: I156a9a73eea8346dc241b5d782a863b99127ca9f
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions