summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-11-23 17:24:50 -0600
committerRiddle Hsu <riddlehsu@google.com>2020-11-23 10:17:42 +0000
commit340a523b82f3b9790227d2c8ce699577bbf2e817 (patch)
tree178bef6a5762c8c7b123425d1a74225bc27048ba /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentefd3defdda331f03039af67d7c7c0d9eace4f491 (diff)
Remove trimmable tasks on activity idle
Previously, the unreachable/inactive tasks may be removed when adding a task to recents list. That may causes the indirect caller to encounter index out of bounds exception when iteration tasks. Because activity-idle should be a standalone event that it should not be called in any loop, and it is also the place to handle stopping and finishing activities. So it is a relatively safe place to remove the trimmable tasks. Besides, the movement of invocation may avoid additional time when launching activity that triggers trim. Also simplify the setup of RecentTasksTest to reduce 60%+ execution time of the test class. Bug: 169124675 Test: atest RecentTasksTest Change-Id: I49003b834ac55a44bf36ad59f920d4e662f9e427
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions