Move computation of Font::CanShapeWordByWord() to FontFallbackList
Font::CanShapeWordByWord() depends on font face specific data, and hence, will be invalidated after a font face is loaded. This patch moves the computation and caching from Font to FontFallbackList, so that we don't need to invalidate Font for the data after loading a font face. This is preparation for crrev.com/c/1952189 that reduces invalidations after font loading. Bug: 441925 Change-Id: I605ffbc3981a56f6653cb32d5415b291b03f3b0c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2026594 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Dominik Röttsches <drott@chromium.org> Cr-Commit-Position: refs/heads/master@{#736639}
Showing
Please register or sign in to comment