diff options
author | Jorim Jaggi <jjaggi@google.com> | 2018-04-30 18:51:56 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2018-05-18 18:26:30 +0200 |
commit | b29e318e0337213d4e031dc5d339f9903cef78a9 (patch) | |
tree | f543df434a878d96ef2468b0fbdde9b488ccd6e9 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions