Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8ba03525 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato Committed by Nicolò Mazzucato
Browse files

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
parent a830950a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment