| Index: src/core/SkFindAndPlaceGlyph.h
|
| diff --git a/src/core/SkFindAndPlaceGlyph.h b/src/core/SkFindAndPlaceGlyph.h
|
| index 78a02c0e4dc4cdbab3063d07710be743e4741e35..18b93f70a466291cc1f44989f3d75463442ad919 100644
|
| --- a/src/core/SkFindAndPlaceGlyph.h
|
| +++ b/src/core/SkFindAndPlaceGlyph.h
|
| @@ -587,9 +587,8 @@ inline void SkFindAndPlaceGlyph::ProcessPosText(
|
| SkPaint::Align textAlignment,
|
| SkGlyphCache* cache, ProcessOneGlyph&& processOneGlyph) {
|
|
|
| - SkAxisAlignment axisAlignment = SkComputeAxisAlignmentForHText(matrix);
|
| + SkAxisAlignment axisAlignment = cache->getScalerContext()->computeAxisAlignmentForHText();
|
| uint32_t mtype = matrix.getType();
|
| -
|
| LookupGlyph glyphFinder(textEncoding, cache);
|
|
|
| // Specialized code for handling the most common case for blink. The while loop is totally
|
| @@ -710,7 +709,8 @@ inline void SkFindAndPlaceGlyph::ProcessText(
|
| GlyphFindAndPlace<ProcessOneGlyph> findAndPosition{
|
| [&](typename GlyphFindAndPlace<ProcessOneGlyph>::Variants* to_init) {
|
| if (cache->isSubpixel()) {
|
| - SkAxisAlignment axisAlignment = SkComputeAxisAlignmentForHText(matrix);
|
| + SkAxisAlignment axisAlignment =
|
| + cache->getScalerContext()->computeAxisAlignmentForHText();
|
| InitSubpixel<ProcessOneGlyph, SkPaint::kLeft_Align>(
|
| to_init, axisAlignment, glyphFinder);
|
| } else {
|
|
|