summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2017-05-13 01:24:31 +0200
committerJorim Jaggi <jjaggi@google.com>2017-05-15 10:21:29 +0000
commitff43ef4d7a57d5a3afcc278fbc782cdded5d7e20 (patch)
treeaaadf7caaf68ce8793592f12c8937d94b293f64b /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentddb449efd9671f4c89470d645acd0b84e6a6ff15 (diff)
Relayout before creating surface
Since we create starting window surfaces immediately (instead of waiting for app visibility), we hit a weird corner case in which the surface was created before the window was laid out. Thus, a little bit later, we had to call SurfaceControl.setSize, which made the whole transaction blocking, meaning that we blocked until the next vsync before returning to the client (starting window). Fix this by running a layout if the window wasn't laid out yet. Test: Open hot app, see latency go down by an average of 8ms (up to 16ms better!) Bug: 32668632 Change-Id: I9817afc72127e32d7f8f4e497e0dccd7f180a9c0
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions