commit | b29e318e0337213d4e031dc5d339f9903cef78a9 | [log] [tgz] |
---|---|---|
author | Jorim Jaggi <jjaggi@google.com> | Mon Apr 30 18:51:56 2018 +0200 |
committer | Jorim Jaggi <jjaggi@google.com> | Fri May 18 18:26:30 2018 +0200 |
tree | f543df434a878d96ef2468b0fbdde9b488ccd6e9 | |
parent | e4a8d4c7e94ac72cf7978306160994015b99227c [diff] |
Schedule trimMemory after drawing the frame Fixes jank issues where trimMemory gets scheduled during an animation. trimMemory likely hits code that is not in the page cache anymore, leading to high execution time because of page misses. Scheduling it after the next frame has been drawn minimizes the risk that this page miss actually causes jank. Test: Boot, switch between a couple of apps. Bug: 78611607 Change-Id: Ia1fc411fbe6ca07861183ae484124406681118e5