Index: src/effects/SkBicubicImageFilter.cpp |
diff --git a/src/effects/SkBicubicImageFilter.cpp b/src/effects/SkBicubicImageFilter.cpp |
index 0ffcde6e2e13d4a7898a4b603297e1bedc079875..02e706f3552cfb9c27cc081b3bb374f428d9deea 100644 |
--- a/src/effects/SkBicubicImageFilter.cpp |
+++ b/src/effects/SkBicubicImageFilter.cpp |
@@ -98,6 +98,9 @@ bool SkBicubicImageFilter::onFilterImage(Proxy* proxy, |
SkScalarMul(SkIntToScalar(src.height()), fScale.fHeight)); |
SkIRect dstIRect; |
dstRect.roundOut(&dstIRect); |
+ if (dstIRect.isEmpty()) { |
+ return false; |
+ } |
result->setConfig(src.config(), dstIRect.width(), dstIRect.height()); |
result->allocPixels(); |
if (!result->getPixels()) { |