Move HasSpaceInLigaturesOrKerning to HarfBuzzFace
Previously a set if bechmark stories triggered the expensive glyph collection in GSUB and GPOS way too many times. This was found while investigating and hb_set performance issue 781794. browse:news:cnn triggered the call and GSUB/GPOS scanning method 1395 times, and was reduced to two. browse:news:hackernews 33 times reduced to 4, browse:social:twitter 58 times reduced to 4, browse:social:twitter_infinite_scroll 38 times reduced to 4 as well. We only need to do this work once per font face, independent of size - whereas previously it was once per Font object, which, depending on layout of the page, triggers much more frequently. Test: FontPlatformDataTest Bug: 791475 Change-Id: I15757abab2037677d5ea4c640ac26ab99da4649c Reviewed-on: https://chromium-review.googlesource.com/809106 Commit-Queue: Dominik Röttsches <drott@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#522394}
Showing
Please register or sign in to comment