summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2020-10-09 16:51:06 +0200
committerMartijn Coenen <maco@google.com>2020-11-23 09:02:50 +0100
commit6f3996fc6dcb33dfb90e664d968fbd362d9091fe (patch)
tree32908288cbe2a7e81e229db21a338e18ab2cb5c5 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent3acf806a9e9b22f3d31b39e7c971e52b49c770ea (diff)
Use futures for binding and talking to the ExternalStorageService.
The existing CountdownLatch logic had some corner cases where it would continue waiting for the latch to count down, even when it was already clear that the operation couldn't succeed (eg, a bind failed). To fix this, as well as try and simplify some of this code, switch to using futures, which have a nicely defined way of cancelling outstanding operations. Additionally, switch to using a dedicated handler thread for receiving bind events for all users, not just demo users. This avoids having to wait for a long time when the system_server main thread is busy. Bug: 170284679 Test: atest AdoptableHostTest atest CtsScopedStorageHostTest Change-Id: Id3e4f4ced66193536c7c51b18c0fea31c556d567
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions