| Index: src/gpu/GrAtlasTextContext.cpp
|
| diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp
|
| index f3d6eafb2ef9f4f17e0f66d43ef943f0a2ccffec..f5867ba9cb11e5d42b7a1e9115ff0eee549a05b9 100644
|
| --- a/src/gpu/GrAtlasTextContext.cpp
|
| +++ b/src/gpu/GrAtlasTextContext.cpp
|
| @@ -1681,7 +1681,8 @@ public:
|
| glyph->fMaskFormat == this->maskFormat());
|
|
|
| if (!fFontCache->hasGlyph(glyph) &&
|
| - !strike->addGlyphToAtlas(batchTarget, glyph, scaler, skGlyph)) {
|
| + !strike->addGlyphToAtlas(batchTarget, glyph, scaler, skGlyph,
|
| + maskFormat)) {
|
| this->flush(batchTarget, &flushInfo);
|
| batchTarget->initDraw(gp, pipeline);
|
| brokenRun = glyphIdx > 0;
|
| @@ -1689,7 +1690,8 @@ public:
|
| SkDEBUGCODE(bool success =) strike->addGlyphToAtlas(batchTarget,
|
| glyph,
|
| scaler,
|
| - skGlyph);
|
| + skGlyph,
|
| + maskFormat);
|
| SkASSERT(success);
|
| }
|
| fFontCache->addGlyphToBulkAndSetUseToken(&info.fBulkUseToken, glyph,
|
|
|