[M108 Migration][Loading Performance] Add cache for mismatched SkTypeface 11/290311/3
authorGajendra N <gajendra.n@samsung.com>
Tue, 21 Mar 2023 08:58:22 +0000 (14:28 +0530)
committerBot Blink <blinkbot@samsung.com>
Thu, 23 Mar 2023 18:52:45 +0000 (18:52 +0000)
commit9a64b34bc71f54322e84a3aa018cfbe990c0108b
tree52fda1883e400cafa1a411f2047db920c0c94092
parentd6394f21f750e9fe64d254ddcf13812ade78fd76
[M108 Migration][Loading Performance] Add cache for mismatched SkTypeface

|matchFamilyName| is always called in |onLegacyCreateTypeface| to
match font. Because |SkTypeFaceCache| doesn't support for mismatched
typeface. |matchFamilyName| takes a long time (at least 1ms~).
This patch caches the mismatched SkTypeface and reduces the number of
|matchFamilyName| calls.
Hence, this patch improves loading performance.

Reference: https://review.tizen.org/gerrit/268117

Change-Id: Ie2697394c45affcb95d600f3faad84d39a06c6a3
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
third_party/skia/src/core/SkTypefaceCache.cpp
third_party/skia/src/core/SkTypefaceCache.h
third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp