diff options
author | Rob Carr <racarr@google.com> | 2020-03-09 11:22:30 -0700 |
---|---|---|
committer | Steven Laver <lavers@google.com> | 2020-03-10 11:17:29 -0700 |
commit | b0c9550f25896fd541fe87ea6b4fb30cb8bdb725 (patch) | |
tree | 235ce294971352e9fddeb11330495c0607b28654 /rs/java/android/renderscript/ProgramStore.java | |
parent | b6292e3e1ba3616eac1032737a91925391d94b92 (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 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions