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
Loading
Please register or sign in to comment