diff options
author | Jorim Jaggi <jjaggi@google.com> | 2017-05-16 14:23:19 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2017-05-19 00:04:59 +0200 |
commit | 45e2d8faed70252f8c5535ed9dee903b45f60ac1 (patch) | |
tree | ab856285b5ca630a30723328a44c8b74a2f7b3c1 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 95cf170ce94f51e9455304207ab20d4bd7109697 (diff) |
Optimize latency when closing panel with animation
The interpolator we chose had a very slow easy out where it
generated out frame with mExpandedHeight=0.3 pixels. We add a
check there and stop the animation immediately if this happens.
Furthermore, we just use a simple post when closing the panel
to not add to much latency. The frame will be shown in any case
since we are already in animation/input callback, such that a post
will be executed after the frame has been sent to RT.
Test: Capture trace, unlock phone, make sure no delays
Change-Id: I9fc45f4b081bd6143da1ba99e9bc652a9f64e4a7
Fixes: 38294347
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions