summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRob Carr <racarr@google.com>2020-03-09 11:22:30 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-03-10 00:04:56 +0000
commit0eeb8686fa3e3097cc60ab50b61ca58c74e54203 (patch)
tree604736b87616bd1c010ddd82ef3218f5fe31b6b1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3396a1d22cdd4039314d604063382b133d55824a (diff)
InsetController: Release leashes from RenderThread
We handle changes to the leashes from the UI thread, but use the same SurfaceControl wrapper object from the RenderThread with SyncRtSurfaceTransactionApplier. This means that at the time we release a SurfaceControl from the UI thread we might have already scheduled a SyncRtSurfaceTransactionApplier to use it, and actually that could be in the process of running, leading to racy access and crashes. To fix this we release the SurfaceControl from the RenderThread so that it happens behind all existing operations. Bug: 151086678 Test: Existing tests pass. Change-Id: I2308d1c64f3f368c32587f99ddfb9e05955f821f (cherry picked from commit 521e363a0ff5b90bec8f1fb6d5e10156af713a76)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions