summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2023-12-19 21:34:38 +0000
committer Nicolò Mazzucato <nicomazz@google.com> 2024-01-04 08:56:31 +0000
commit8ba03525da913327ba66f5f861640c39806bf8f0 (patch)
tree5c39703ecae99211fb2af4f80b67462096871f0d /libs/hwui/FrameInfoVisualizer.cpp
parenta830950a471e67bd0daf3b5506d6c0ad78aa7e2c (diff)
Use measure caches during force layout traversal
measure caches are ignored every time force layout is true (e.g. after a requestLayout), leading to many duplicated measures with the same specs during the same traversal (as the force layout flag is cleared only after the traversal). When sUseMeasureCacheDuringForceLayout is true, measure caches are used also while force_layout set. Note that there is still always at least one measure and one layout after requestLayout is called. When measure caches are used the PFLAG3_MEASURE_NEEDED_BEFORE_LAYOUT is set, and triggers a measure just before layout. Flag: ACONFIG enable_use_measure_cache_during_force_layout DISABLED Bug: 316170253 Bug: 310572965 Bug: 269125657 Bug: 318495687 Test: View_ForceLayout + performance tests Change-Id: I349208c220744072b3acc95c8a37692beb1d0adf
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions