summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorVishnu Nair <vishnun@google.com>2021-12-22 09:47:47 -0800
committerVishnu Nair <vishnun@google.com>2021-12-28 17:53:44 +0000
commitc10beab1e2494107d23f7d2f78ec6183c471f523 (patch)
tree0a6ae062e774e6e466973acf3736ad0992d0813f /tools/aapt2/java/JavaClassGenerator_test.cpp
parent86643bc7116ebb09430c80588590a16f1ef8afbc (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 (cherry picked from commit 894fa8809a71923aaa5920f79c1b70405b4a7e64)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions