Index: src/effects/SkDropShadowImageFilter.cpp |
diff --git a/src/effects/SkDropShadowImageFilter.cpp b/src/effects/SkDropShadowImageFilter.cpp |
index deece35b3883fe9255ba9f0f926a3e1602093da3..e32b89ee6df8d92cfd8ad1d8486e781a62fd4f49 100644 |
--- a/src/effects/SkDropShadowImageFilter.cpp |
+++ b/src/effects/SkDropShadowImageFilter.cpp |
@@ -79,11 +79,9 @@ bool SkDropShadowImageFilter::onFilterImageDeprecated(Proxy* proxy, const SkBitm |
sigma.fX = SkMaxScalar(0, sigma.fX); |
sigma.fY = SkMaxScalar(0, sigma.fY); |
SkAutoTUnref<SkImageFilter> blurFilter(SkBlurImageFilter::Create(sigma.fX, sigma.fY)); |
- SkAutoTUnref<SkColorFilter> colorFilter( |
- SkColorFilter::CreateModeFilter(fColor, SkXfermode::kSrcIn_Mode)); |
SkPaint paint; |
paint.setImageFilter(blurFilter.get()); |
- paint.setColorFilter(colorFilter.get()); |
+ paint.setColorFilter(SkColorFilter::MakeModeFilter(fColor, SkXfermode::kSrcIn_Mode)); |
paint.setXfermodeMode(SkXfermode::kSrcOver_Mode); |
SkVector offsetVec = SkVector::Make(fDx, fDy); |
ctx.ctm().mapVectors(&offsetVec, 1); |