DescriptionUntangle HarfBuzz callbacks for glyph width and extents
Under the hood, SkPaint uses "needsFullMetrics" or just advance
callbacks into the glyph cache. Untangling the calls and only retrieving
either advance or bounds should speed up these HarfBuzz callbacks.
Measured locally I am seeing ~10% improvements on
blink_pref.layout:chapter-reflow and
~blink_pref.layout:ArabicLineLayout.
BUG=631032
R=kojii,tzik
Committed: https://crrev.com/994c65ef57ec7c84b18fd66d7b8b85e5a2dc29bd
Cr-Commit-Position: refs/heads/master@{#409295}
Patch Set 1 #Patch Set 2 : Untangle HarfBuzz callbacks for glyph width and extents #
Messages
Total messages: 15 (9 generated)
|