| Index: src/gpu/GrAtlasTextContext.cpp
|
| diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp
|
| index 37fe092496d0f4521d4f8ce77a36544ac880072d..1697d125439a4880f0fe9a37f7b485e03e8ff1c8 100644
|
| --- a/src/gpu/GrAtlasTextContext.cpp
|
| +++ b/src/gpu/GrAtlasTextContext.cpp
|
| @@ -821,13 +821,14 @@ void GrAtlasTextContext::internalDrawBMPText(GrAtlasTextBlob* blob, int runIndex
|
| }
|
|
|
| fCurrStrike = nullptr;
|
| - SkDrawCacheProc glyphCacheProc = skPaint.getDrawCacheProc();
|
|
|
| // Get GrFontScaler from cache
|
| GrFontScaler* fontScaler = GetGrFontScaler(cache);
|
|
|
| SkFindAndPlaceGlyph::ProcessText(
|
| - text, byteLength, {x, y}, viewMatrix, skPaint.getTextAlign(), glyphCacheProc, cache,
|
| + skPaint.getTextEncoding(), text, byteLength,
|
| + {x, y}, viewMatrix, skPaint.getTextAlign(),
|
| + cache,
|
| [&](const SkGlyph& glyph, SkPoint position, SkPoint rounding) {
|
| position += rounding;
|
| this->bmpAppendGlyph(
|
| @@ -854,14 +855,14 @@ void GrAtlasTextContext::internalDrawBMPPosText(GrAtlasTextBlob* blob, int runIn
|
| }
|
|
|
| fCurrStrike = nullptr;
|
| - SkDrawCacheProc glyphCacheProc = skPaint.getDrawCacheProc();
|
|
|
| // Get GrFontScaler from cache
|
| GrFontScaler* fontScaler = GetGrFontScaler(cache);
|
|
|
| SkFindAndPlaceGlyph::ProcessPosText(
|
| - text, byteLength, offset, viewMatrix, pos, scalarsPerPosition,
|
| - skPaint.getTextAlign(), glyphCacheProc, cache,
|
| + skPaint.getTextEncoding(), text, byteLength,
|
| + offset, viewMatrix, pos, scalarsPerPosition,
|
| + skPaint.getTextAlign(), cache,
|
| [&](const SkGlyph& glyph, SkPoint position, SkPoint rounding) {
|
| position += rounding;
|
| this->bmpAppendGlyph(
|
|
|