Index: src/gpu/text/GrTextUtils.cpp |
diff --git a/src/gpu/text/GrTextUtils.cpp b/src/gpu/text/GrTextUtils.cpp |
index 3616bcada12725bac7c09449fb5ca158de7899dd..c368c214e18692c633404df51c54e8d7ef1f14ba 100644 |
--- a/src/gpu/text/GrTextUtils.cpp |
+++ b/src/gpu/text/GrTextUtils.cpp |
@@ -260,10 +260,12 @@ 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 |
// passed-in scaler context flags. (It's only used when we fall-back to bitmap text). |
- skPaint.getScalerContextDescriptor(&desc, props, SkPaint::kNone_ScalerContextFlags, nullptr); |
- SkGlyphCache* origPaintCache = SkGlyphCache::DetachCache(skPaint.getTypeface(), |
+ skPaint.getScalerContextDescriptor(&effects, &desc, props, SkPaint::kNone_ScalerContextFlags, |
+ nullptr); |
+ SkGlyphCache* origPaintCache = SkGlyphCache::DetachCache(skPaint.getTypeface(), effects, |
desc.getDesc()); |
SkTArray<SkScalar> positions; |