summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2017-05-12 17:27:46 +0200
committerJorim Jaggi <jjaggi@google.com>2017-05-16 17:28:40 +0200
commit34795e31971b5495fcf91c1063dcb689957e2c9f (patch)
treeaee6b195a3a7db927a458eea6183b78120868df9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentdc9385aad49bf2ba24c1221a5d4558a1ac69f97a (diff)
Optimize hot launching recents
Rearrange how we generate the transition specs, which involves creating a thumbnail on the mainthread (about 10ms on large devices): First, we put launching the activity onto a handler thread (with default priority), to free up the main thread. Then, we immediately start generating the thumbnail such that when the future calls us we have the generated spec already handy. For that we need to be able to supply a specs future into ActivityOptions, to avoid race conditions. Furthermore we need to make sure not to call into WM while creating specs, to avoid WM lock contention. Test: App -> Recents -> Same app, inspect app transition logs Test: Double tap recents for quick switching Bug: 32668632 Change-Id: I6001e29145f8e56deb9c4ead46c53c87c9191436 Merged-In: Ic6ec65c2560f67cade3b5ddde9f79ee13e9ba32c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions