diff options
author | Tiger Huang <tigerhuang@google.com> | 2021-04-07 15:58:37 +0800 |
---|---|---|
committer | Tiger Huang <tigerhuang@google.com> | 2021-04-07 15:58:37 +0800 |
commit | fa17d6ca37b3f434e05e286fb5f828b28bbca93b (patch) | |
tree | eca1c2774ac070f8942ee4f754abac2a9ef9b352 /libs/hwui/renderthread/DrawFrameTask.cpp | |
parent | 6b2d6fbea57631a82e842fc6108978e02359c381 (diff) |
Clear controls and animations in temp arrays after using them
The arrays would be cleared while next time we use them, so they could
constantly occupy the memory.
This CL clears the temp arrays right after we use them. So they won't
occupy the memory while they are not being used.
Fix: 183684434
Test: Use Android Memory Profiler to check if there is
InsetsAnimationControlImpl or WindowInsetsAnimation instances
after GCing after playing insets animation in Launcher.
Change-Id: Iaae1e11d1c0cc1a9ac345beb3d7e8b596ea1b4ba
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions