diff options
author | Ahan Wu <ahanwu@google.com> | 2020-03-11 20:24:00 +0800 |
---|---|---|
committer | Ahan Wu <ahanwu@google.com> | 2020-03-31 11:16:37 +0800 |
commit | 3222d3f40dd76c871c557915e9fb6174997e5aa4 (patch) | |
tree | 6d5ae4d72cc775e9740f340f80473d7d786868ac /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | fa0f02a91c128ceb559f4578f1aec8c6981bc042 (diff) |
Recycle the bitmap as soon as possible
Recycle the bitmap as soon as possible to release native heap.
According to meminfo, it uses around 20MB less than the version
which waits for gc.
Bug: 149744069
Bug: 147379974
Test: mp sysuig and reboot to lockscreen
Test: adb shell dumpsys meminfo com.android.systemui
Change-Id: I513edc62b868e6c9a6a3e3b7420961acc606eb0f
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions