| Index: src/gpu/text/GrTextUtils.cpp
|
| diff --git a/src/gpu/text/GrTextUtils.cpp b/src/gpu/text/GrTextUtils.cpp
|
| index ad5c0409779f79fe57ce19c9c23de6f8d7cdbd7e..a042d997b106824995bfa760f7be4083ff450747 100644
|
| --- a/src/gpu/text/GrTextUtils.cpp
|
| +++ b/src/gpu/text/GrTextUtils.cpp
|
| @@ -260,10 +260,11 @@ void GrTextUtils::DrawDFText(GrAtlasTextBlob* blob, int runIndex,
|
|
|
| SkPaint::GlyphCacheProc glyphCacheProc = skPaint.getGlyphCacheProc(true);
|
| SkAutoDescriptor desc;
|
| + SkScalerContextEffects effects;
|
| // We apply the fake-gamma by altering the distance in the shader, so we ignore the
|
| // fakeGamma parameter. (It's only used when we fall-back to bitmap text).
|
| - skPaint.getScalerContextDescriptor(&desc, props, SkPaint::FakeGamma::Off, nullptr);
|
| - SkGlyphCache* origPaintCache = SkGlyphCache::DetachCache(skPaint.getTypeface(),
|
| + skPaint.getScalerContextDescriptor(&desc, &effects, props, SkPaint::FakeGamma::Off, nullptr);
|
| + SkGlyphCache* origPaintCache = SkGlyphCache::DetachCache(skPaint.getTypeface(), effects,
|
| desc.getDesc());
|
|
|
| SkTArray<SkScalar> positions;
|
|
|