diff options
author | Winson Chung <winsonc@google.com> | 2021-04-15 22:53:02 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2021-04-15 22:53:02 -0700 |
commit | e5b567749e1c488489b250a252800b84d4113a6c (patch) | |
tree | 7f9a38b8f88b02db033ff23c96b8592e00cf2f21 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | bbf0d29880718509ecd30b11d097dfcf629a32bb (diff) |
Skip some unnecessary allocations
- Move new matrix/rect construction to if the param is set on the
builder, we only apply the params if the flags are set anyways
and if the caller doesn't set those params then we are allocating
new objects unnecessarily
- Always recycle motion event
Bug: 183756396
Test: Take memory profile when dragging pip
Change-Id: Ie7457c8c508ee61bd27daeebe486c39a5cebe7d7
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions