Index: src/effects/SkBlurImageFilter.cpp |
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp |
index 00064d4668e664b5b95246671e64041b9d9f2e8a..470dcac3c851e913dbc753727c15a42561af7dd5 100644 |
--- a/src/effects/SkBlurImageFilter.cpp |
+++ b/src/effects/SkBlurImageFilter.cpp |
@@ -163,11 +163,10 @@ bool SkBlurImageFilter::onFilterImage(Proxy* proxy, |
return false; |
} |
- dst->setConfig(src.config(), srcBounds.width(), srcBounds.height()); |
- dst->getBounds(&dstBounds); |
- if (!dst->allocPixels()) { |
+ if (!dst->allocPixels(src.info().makeWH(srcBounds.width(), srcBounds.height()))) { |
return false; |
} |
+ dst->getBounds(&dstBounds); |
SkVector sigma = SkVector::Make(fSigma.width(), fSigma.height()); |
ctx.ctm().mapVectors(&sigma, 1); |
@@ -191,8 +190,7 @@ bool SkBlurImageFilter::onFilterImage(Proxy* proxy, |
} |
SkBitmap temp; |
- temp.setConfig(dst->config(), dst->width(), dst->height()); |
- if (!temp.allocPixels()) { |
+ if (!temp.allocPixels(dst->info())) { |
return false; |
} |