diff options
author | chaviw <chaviw@google.com> | 2020-09-11 16:50:18 -0700 |
---|---|---|
committer | chaviw <chaviw@google.com> | 2020-09-14 11:22:05 -0700 |
commit | a701408ef0dc3ed2e144cbc7f5698d62310f382d (patch) | |
tree | 0ca1091415e39778f6501fbb1471527c51548ac8 /libs/hwui/renderthread/RenderThread.cpp | |
parent | 5dc4e52e20d4aa0cf487ebe6264ab3dc8d344770 (diff) |
Use buffer size for NativeAllocationRegistry instead of a fixed value
When calling NativeAllocationRegistry for HardwareBuffer, it needs the
correct size so GC knows how much memory has been allocated and when to
run. The current behavior uses a fixed size so it's likely the buffer is
actually consuming more memory than what GC thinks.
Test: atest ContentCapturePerfTests:LoginTest
Bug: 168149157
Bug: 168154840
Change-Id: Ife174478b2b76214b438de2757289a973330c979
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
0 files changed, 0 insertions, 0 deletions