summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Robert Horvath <robhor@google.com> 2022-03-23 15:21:10 +0100
committer Robert Horvath <robhor@google.com> 2022-03-24 12:29:05 +0100
commite10a3513f4831fcb47c641215438c9316835ef87 (patch)
tree1ae9836c761ee51e069e2046b4542508bf4f9b0e /libs/androidfw/ResourceTimer.cpp
parente0934dadbe3b5d9860a066a413f7ade877ffced2 (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