summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2015-10-29 13:08:29 +0100
committerJorim Jaggi <jjaggi@google.com>2015-11-06 16:12:59 +0100
commit2f7d292596bdba15e441046e3a2e047f37d6ea59 (patch)
tree15f32da5db99f013d1364d6120d4a225ceb97cec /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8382f98f6246c514106ca2bd88ab9f3c8d2ff5c8 (diff)
Supply app transition specs with a future
Because we retain activity surfaces now, the app transition specs which were calculated/generated after the onPause() call when going from recents -> app were too slow. Instead, supply a cross-process future, which gets fetched when the window manager is about to be ready to execute the app transition. In practice, this still gets executed immediately after the onPause call. If we have a retained surface, this adds some latency, but since we absolutely need the specs to execute the transition, we have that latency no matter where exactly we generate the specs. If we don't have a retained surface, the specs are not calculated on the critical path, so it's faster. Bug: 19940527 Change-Id: I80d2c6f6b3a6568a70339619ecefbc3bd8409bd8
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions