summaryrefslogtreecommitdiffstats
path: root/core/jni/android
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-09-25 02:41:29 +0200
committerJorim Jaggi <jjaggi@google.com>2014-10-08 18:30:54 +0000
commit786afcb3eec18315ec54987a08814ff28f13d09f (patch)
tree17a0b148ab9591401c091414d78d6bfd1fdfd14a /core/jni/android
parentb7af00f2b14e9f8333e3518aa81a15502858ea11 (diff)
downloadframeworks_base-786afcb3eec18315ec54987a08814ff28f13d09f.zip
frameworks_base-786afcb3eec18315ec54987a08814ff28f13d09f.tar.gz
frameworks_base-786afcb3eec18315ec54987a08814ff28f13d09f.tar.bz2
Trim graphics memory when closing the shade
Graphics memory usually gets trimmed in applications when the activity goes into the background. We use quite a lot of graphics memory when the shade/lockscreen is open, and some of them never gets freed unless the recents activity is closed, because we don't have these activity-trimming-heuristics for the shade. This change proactively trims the graphics memory when the shade gets closed or when the lockscreen is hidden, to emulate the same heuristics as for activities. This change also adds trimMemory on RenderThread to systrace to verify that no jank is introduced with this change. This change immediately saves around 10-30 MB on an xxhdpi device after the shade is closed. Bug: 17581375 Change-Id: I4fb622efb51815fe08187be97ba15d012d4de5d4
Diffstat (limited to 'core/jni/android')
0 files changed, 0 insertions, 0 deletions