Index: src/effects/SkLayerDrawLooper.cpp |
diff --git a/src/effects/SkLayerDrawLooper.cpp b/src/effects/SkLayerDrawLooper.cpp |
index ae31482ae7bdf5ff3747680b902286a9447660a5..8510767801c174a401cf28b0a3fb31b157ee1bc6 100644 |
--- a/src/effects/SkLayerDrawLooper.cpp |
+++ b/src/effects/SkLayerDrawLooper.cpp |
@@ -102,7 +102,7 @@ |
dst->setShader(src.getShader()); |
} |
if (bits & kColorFilter_Bit) { |
- dst->setColorFilter(src.getColorFilter()); |
+ dst->setColorFilter(sk_ref_sp(src.getColorFilter())); |
} |
if (bits & kXfermode_Bit) { |
dst->setXfermode(src.getXfermode()); |