Index: src/effects/SkBlurDrawLooper.cpp |
diff --git a/src/effects/SkBlurDrawLooper.cpp b/src/effects/SkBlurDrawLooper.cpp |
index c8e20e1265be4858ffb687d0deac50ac89edfc21..d8127eba4ee4d03b1bec0d80c45888453c1e1b41 100644 |
--- a/src/effects/SkBlurDrawLooper.cpp |
+++ b/src/effects/SkBlurDrawLooper.cpp |
@@ -44,7 +44,8 @@ |
// be baked into the blurred mask. |
SkColor opaqueColor = SkColorSetA(fBlurColor, 255); |
//The SrcIn xfer mode will multiply 'color' by the incoming alpha |
- fColorFilter = SkColorFilter::MakeModeFilter(opaqueColor, SkXfermode::kSrcIn_Mode); |
+ fColorFilter = SkColorFilter::CreateModeFilter(opaqueColor, |
+ SkXfermode::kSrcIn_Mode); |
} else { |
fColorFilter = nullptr; |
} |
@@ -80,6 +81,7 @@ |
SkBlurDrawLooper::~SkBlurDrawLooper() { |
SkSafeUnref(fBlur); |
+ SkSafeUnref(fColorFilter); |
} |
bool SkBlurDrawLooper::asABlurShadow(BlurShadowRec* rec) const { |