DescriptionDon't read unecessary font files on Android.
With a new style fonts.xml (version >= 21) fallback fonts are specified
as font families without a name. The current code reads these, but then
also reads in the old fallback and vendor xml files. With this change,
when a new style xml file is encoutered, no further files will be read.
This both lowers memory use and speeds font lookup. Locally, this
change reduces the number of font families loaded on my 'L' device from
148 to 80. All of the families removed are duplicates.
Committed: https://skia.googlesource.com/skia/+/efbad37180c6b6f90d4b7e96a234e8065d2ec395
Patch Set 1 #Patch Set 2 : Rebase after spliting out other changes. #Patch Set 3 : Make usage more obvious. #
Total comments: 2
Patch Set 4 : Snake case the statics. #Patch Set 5 : Move reference & to type. #Messages
Total messages: 14 (4 generated)
|