summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2019-11-06 22:17:35 +0800
committerRiddle Hsu <riddlehsu@google.com>2019-12-13 16:59:52 +0800
commit440f88b43a6b88f08e290623f77423a0b35b9c41 (patch)
tree1c3ab00c139485bbca1ea9ca2c776708ac254b2b /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentc3527d7edd40cfa642fc6092abb41c803d57e710 (diff)
Add task snapshot for home task
The real home activity usually takes longer time than a snapshot to complete drawing. Especially when unlocking to home, the duration becomes more noticeable. This CL enables snapshot of home task when turning screen off. And because the snapshot is only used when entering home from a sleeping state, the snapshot will be removed once it is used. Also provide a method for home activity to remove its snapshot while the content of home activity has significant change after taking the snapshot. Bug: 140811348 Test: 1. Set an unlock method that doesn't need to show lockscreen when unlocking. 2. Turn off screen while home is on top. 3. Unlock device to enter home. 4. Check the duration of trace "screenTurningOn". Change-Id: Ic516cdcfd84ca4a85e19798537f9f5a85077392b
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions