Chromium Code Reviews
DescriptionRefactor HarfBuzzShaper to not retain font data
First part in a suite of changes to allow shaping of individual segments
in a TextRun using a single HarfBuzzShaper instance with the prospective
objective to support continuous text shaping across DOM node boundaries.
This change removes the Font argument from the constructor and moves all
font setup plus associated feature detection to the shapeResults method.
By moving the font and font feature settings from the constructor to the
shapeResults call each segment may specify a different font and features
while sharing the same normalized text buffer and thus allowing segments
to use the surrounding text as context while shaping.
Additionally it moves ownership of the holes queue and font feature list
from the class itself to the shapeResults method thereby simplifying the
life cycle management for those collections and ensures that the feature
settings list and the holes queue are both reset between each segment.
TEST=HarfBuzzShaperTest.cpp
BUG=666758
R=drott@chromium.org
Committed: https://crrev.com/185f262ceb59340af223f08a89491beb71f30a2c
Cr-Commit-Position: refs/heads/master@{#433222}
Patch Set 1 #
Messages
Total messages: 16 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||