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