summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2021-08-06 20:05:33 +0100
committerMichael Wright <michaelwr@google.com>2021-08-06 20:30:21 +0100
commit06aff34a8f02d43ab963c04cdeeb3a0fffbee8c2 (patch)
treebca3f18d7cd354af2770bb926ef01993b45a577c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2486a5f188c04b2e2f543b65082d8811eb7310fc (diff)
Introduce new lock to avoid lock-ordering issues.
Because of the way DMD was designed, technically the class lock is below the syncroot in the lock ordering, meaning we can't call into any general display classes while holding the class lock without creating the possibility of deadlock. There's no real reason to use the class lock in this situation though, so just introduce a local lock to SensorObserver that can be above the syncroot and thus call into the rest of the display stack at will. Bug: 195713475 Test: atest DisplayModeDirectorTest Change-Id: Ie32660ae3a3935f0fd4001ca73fecba1e4bbba7d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions