aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/BlurTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/BlurTest.cpp')
-rw-r--r--tests/BlurTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/BlurTest.cpp b/tests/BlurTest.cpp
index f5bb215065..556930e6e9 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();