Index: src/effects/SkBlurImageFilter.cpp |
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp |
index 9bceda7db80ec3bd8af0a47b2f171ae8f0afa9f6..2795f3a872a198e2d7a7dfc55f0b5256474e380f 100644 |
--- a/src/effects/SkBlurImageFilter.cpp |
+++ b/src/effects/SkBlurImageFilter.cpp |
@@ -159,6 +159,10 @@ bool SkBlurImageFilter::onFilterImage(Proxy* proxy, |
dst->setConfig(src.config(), srcBounds.width(), srcBounds.height()); |
dst->getBounds(&dstBounds); |
dst->allocPixels(); |
+ if (!dst->getPixels()) { |
+ return false; |
+ } |
+ |
int kernelSizeX, kernelSizeX3, lowOffsetX, highOffsetX; |
int kernelSizeY, kernelSizeY3, lowOffsetY, highOffsetY; |
getBox3Params(fSigma.width(), &kernelSizeX, &kernelSizeX3, &lowOffsetX, &highOffsetX); |