Index: gm/blurrect.cpp |
diff --git a/gm/blurrect.cpp b/gm/blurrect.cpp |
index 4f158157484a007d720d9b2296ae96cf00f5ba02..55c592b6276c85008a2db9e71df1de0d1f94e358 100644 |
--- a/gm/blurrect.cpp |
+++ b/gm/blurrect.cpp |
@@ -199,7 +199,10 @@ DEF_SIMPLE_GM(blurrect_gallery, canvas, 1200, 1024) { |
SkBlurStyle style = styles[k]; |
SkMask mask; |
- SkBlurMask::BlurRect(SkBlurMask::ConvertRadiusToSigma(radius), &mask, r, style); |
+ if (!SkBlurMask::BlurRect(SkBlurMask::ConvertRadiusToSigma(radius), |
+ &mask, r, style)) { |
+ continue; |
+ } |
SkAutoMaskFreeImage amfi(mask.fImage); |