Index: tests/BlurTest.cpp |
diff --git a/tests/BlurTest.cpp b/tests/BlurTest.cpp |
index f5bb215065dba8b25902719ba57ea43a4f18b656..556930e6e936c1af0145e011e4274d09e7779f8e 100644 |
--- a/tests/BlurTest.cpp |
+++ b/tests/BlurTest.cpp |
@@ -170,8 +170,9 @@ static void ground_truth_2d(int width, int height, |
memset(src.fImage, 0xff, src.computeTotalImageSize()); |
- dst.fImage = nullptr; |
- SkBlurMask::BlurGroundTruth(sigma, &dst, src, kNormal_SkBlurStyle); |
+ if (!SkBlurMask::BlurGroundTruth(sigma, &dst, src, kNormal_SkBlurStyle)) { |
+ return; |
+ } |
int midX = dst.fBounds.centerX(); |
int midY = dst.fBounds.centerY(); |