commit | e5b567749e1c488489b250a252800b84d4113a6c | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Thu Apr 15 22:53:02 2021 -0700 |
committer | Winson Chung <winsonc@google.com> | Thu Apr 15 22:53:02 2021 -0700 |
tree | 7f9a38b8f88b02db033ff23c96b8592e00cf2f21 | |
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