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