summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-12-22 09:47:47 -0800
committer Vishnu Nair <vishnun@google.com> 2021-12-23 23:42:04 +0000
commit894fa8809a71923aaa5920f79c1b70405b4a7e64 (patch)
tree6c794b0712c231582fe8d7de28f3b6a3e7aa2ec9 /libs/androidfw/StringPool.cpp
parent0e27aa3be60780ff64db48af11adc3c7d47bfec4 (diff)
SurfaceView: Fix unsafe transaction accesses
PositionUpdateListener callbacks maybe replaced before they are applied. We need to merge with the existing transaction so we don't drop any destination frame updates. But accessing the previous callback transaction is unsafe since we might fight with render thread. Fix this by locking access to the transaction object. This also fixes a potential SurfaceControl access issue where we may release the SurfaceControl that is used by render thread in the UI thread. Fixes: 211090247 Test: atest SurfaceViewSyncTest Change-Id: I28ed344754601169c6cefd919668e76ef5a467c3
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions