Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Unified Diff: gm/blurrect.cpp

Issue 1539553002: Add default ctor to SkMask (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add warning for ignored return values Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/BlurRectBench.cpp ('k') | include/core/SkMask.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « bench/BlurRectBench.cpp ('k') | include/core/SkMask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698