Index: src/effects/SkLayerDrawLooper.cpp |
diff --git a/src/effects/SkLayerDrawLooper.cpp b/src/effects/SkLayerDrawLooper.cpp |
index ffcaa43e20c0e0f1cb7e7acaa99a0edd980ca37e..d8f774437e5b77a8e47b3cc5eb6a469760e1318a 100644 |
--- a/src/effects/SkLayerDrawLooper.cpp |
+++ b/src/effects/SkLayerDrawLooper.cpp |
@@ -95,7 +95,7 @@ void SkLayerDrawLooper::LayerDrawLooperContext::ApplyInfo( |
dst->setPathEffect(sk_ref_sp(src.getPathEffect())); |
} |
if (bits & kMaskFilter_Bit) { |
- dst->setMaskFilter(src.getMaskFilter()); |
+ dst->setMaskFilter(sk_ref_sp(src.getMaskFilter())); |
} |
if (bits & kShader_Bit) { |
dst->setShader(sk_ref_sp(src.getShader())); |