commit | ee41d4afcb089eac6a6a569557905f71bdd33f6c | [log] [tgz] |
---|---|---|
author | Wale Ogunwale <ogunwale@google.com> | Mon Nov 21 08:41:10 2016 -0800 |
committer | Wale Ogunwale <ogunwale@google.com> | Tue Dec 06 09:44:12 2016 -0800 |
tree | 1bdbfe986243bb6956b6fc494f888aa233b4d467 | |
parent | 6213caa42d89cc446de4f8f9ba00630f166f23cc [diff] |
Introduced WindowContainer.mConsumerWrapperPool WindowContainer.forAllWindows(Consumer<WindowState>...) requires a lambda to be allocated each time it is called since we need to capture the callback. Switched to using an object pool for the process to reduce allocations. Test: Run the allocation traker and make sure there aren't lambda allocations for WindowContainer.forAllWindows() method. Change-Id: If49c1b0bd2e0a5d6d7a30ff686b5235e69a61750