diff options
| author | 2022-03-23 15:21:10 +0100 | |
|---|---|---|
| committer | 2022-03-24 12:29:05 +0100 | |
| commit | e10a3513f4831fcb47c641215438c9316835ef87 (patch) | |
| tree | 1ae9836c761ee51e069e2046b4542508bf4f9b0e /libs/androidfw/ResourceTimer.cpp | |
| parent | e0934dadbe3b5d9860a066a413f7ade877ffced2 (diff) | |
Prevent ArrayList allocation for prefer keep clear areas
This avoids creating an ArrayList if there are no keep clear areas,
returning early with an empty or singleton list where possible.
Bug: 222567277
Test: android.view.ViewShowHidePerfTest#testVisibleToInvisible
Change-Id: Id718a37ea8aa4fcf4edbaade532cea826b15adf0
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions