Chromium Code Reviews| Index: src/effects/SkBicubicImageFilter.cpp | 
| diff --git a/src/effects/SkBicubicImageFilter.cpp b/src/effects/SkBicubicImageFilter.cpp | 
| index db8dbfd0286c506b98cc4a58720d5e67820f562d..69d33ea4f07138cc1185049c0430d152e917c700 100644 | 
| --- a/src/effects/SkBicubicImageFilter.cpp | 
| +++ b/src/effects/SkBicubicImageFilter.cpp | 
| @@ -99,6 +99,9 @@ bool SkBicubicImageFilter::onFilterImage(Proxy* proxy, | 
| SkScalarMul(SkIntToScalar(src.height()), fScale.fHeight)); | 
| SkIRect dstIRect; | 
| dstRect.roundOut(&dstIRect); | 
| + if (dstIRect.isEmpty()) { | 
| 
 
Stephen White
2013/08/21 20:49:26
In the belt-and-suspenders department, we should a
 
sugoi
2013/08/21 21:12:09
Isn't returning false enough ? It's pretty much th
 
Stephen White
2013/08/21 21:23:00
OK, maybe I'm confused. I thought you said at one
 
sugoi
2013/08/21 21:34:01
Ah, ok, I see what you mean. Since the size is 0 x
 
 | 
| + return false; | 
| + } | 
| result->setConfig(src.config(), dstIRect.width(), dstIRect.height()); | 
| result->allocPixels(); | 
| if (!result->getPixels()) { |