Index: src/gpu/text/GrTextUtils.cpp |
diff --git a/src/gpu/text/GrTextUtils.cpp b/src/gpu/text/GrTextUtils.cpp |
index c46ea73d058d91243e3ebf4eebc37cdf0ec0eac6..edf813dcc057c50385096a1eaef3ec29f6515fc0 100644 |
--- a/src/gpu/text/GrTextUtils.cpp |
+++ b/src/gpu/text/GrTextUtils.cpp |
@@ -517,7 +517,7 @@ void GrTextUtils::DrawPosTextAsPath(GrContext* context, |
// Now restore the original settings, so we "draw" with whatever style/stroking. |
paint.setStyle(origPaint.getStyle()); |
- paint.setPathEffect(origPaint.getPathEffect()); |
+ paint.setPathEffect(sk_ref_sp(origPaint.getPathEffect())); |
while (text < stop) { |
const SkGlyph& glyph = glyphCacheProc(cache, &text); |