summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-10-29 00:20:50 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-10-30 22:36:20 +0800
commit1add173dda5f743a1491b1338c6313040dd3ce04 (patch)
tree7e5d9ea12876ce69ef6e3f3d083e2af32004a841 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf2d1d264793831f07b689e534366fb55f12174cc (diff)
Store the existence of home and previous process
WindowProcessController can already know whether there is a home or previous process. Though a refresh of the states require a full oom-adj update, trimApplicationsLocked and appDiedLocked should be frequently enough to update. This removes potential lock contention when memFactor becomes not ADJ_MEM_FACTOR_NORMAL when updating oom-adj. This also reduces the dependency of internal interface across packages. Bug: 159104503 Bug: 171989664 Test: Launch several apps and run memeater to trigger low mem. Check the output of "adb shell dumpsys activity processes" and set break point at AppProfiler to observe the values. Change-Id: I2fe0eeccdde3ea687ce0d5d856beb3aee886c185
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions