Index: src/effects/SkLayerDrawLooper.cpp |
diff --git a/src/effects/SkLayerDrawLooper.cpp b/src/effects/SkLayerDrawLooper.cpp |
index 8510767801c174a401cf28b0a3fb31b157ee1bc6..526fb4d7e304d66d8533b8f571a21dfd6f591cb4 100644 |
--- a/src/effects/SkLayerDrawLooper.cpp |
+++ b/src/effects/SkLayerDrawLooper.cpp |
@@ -99,7 +99,7 @@ void SkLayerDrawLooper::LayerDrawLooperContext::ApplyInfo( |
dst->setMaskFilter(src.getMaskFilter()); |
} |
if (bits & kShader_Bit) { |
- dst->setShader(src.getShader()); |
+ dst->setShader(sk_ref_sp(src.getShader())); |
} |
if (bits & kColorFilter_Bit) { |
dst->setColorFilter(sk_ref_sp(src.getColorFilter())); |