commit | a701408ef0dc3ed2e144cbc7f5698d62310f382d | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Fri Sep 11 16:50:18 2020 -0700 |
committer | chaviw <chaviw@google.com> | Mon Sep 14 11:22:05 2020 -0700 |
tree | 0ca1091415e39778f6501fbb1471527c51548ac8 | |
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