Files
frameworks_base/core/java/android/text
James.cf Lin e5aad7a752 Fix performance regression create_PrecomputedText_NoStyled_Greedy_NoHyphenation_DirDifferent_min
The LineBreakConfig instance in the StaticLayout is null as default.

Because the LineBreakConfig in StaticLayout was not initialized, the null instance was brought to PrecomputedText and caused the function PrecomputedText.Builder#checkResultUsable to return UNUSABLE.

Bug: b/220992481
Test: atest StaticLayoutTest; atest StaticLayoutPerfTest
Change-Id: I93bcb6ebc35344e34e9bb8a24df375aa7b3a8d81
2022-03-09 03:25:06 +08:00
..
2022-02-10 15:04:20 +01:00
2021-10-08 23:01:51 +00:00
2021-12-06 15:46:27 -08:00
2021-12-17 00:29:43 +08:00
…
2022-01-26 11:55:03 +08:00