Index: fuzz/FilterFuzz.cpp |
diff --git a/fuzz/FilterFuzz.cpp b/fuzz/FilterFuzz.cpp |
index db3dc8f8a7fd1a756a74adae44e2b70d807c4077..12ae50dd71a20d4ca40181e6320126c7efeabd30 100644 |
--- a/fuzz/FilterFuzz.cpp |
+++ b/fuzz/FilterFuzz.cpp |
@@ -680,19 +680,16 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) { |
filter = SkPaintImageFilter::Make(paint, &cropR); |
break; |
} |
- case DROP_SHADOW: { |
- sk_sp<SkImageFilter> subFilter(make_image_filter()); |
- |
- filter = sk_sp<SkImageFilter>(SkDropShadowImageFilter::Create(make_scalar(), |
- make_scalar(), |
- make_scalar(true), |
- make_scalar(true), |
- make_color(), |
- make_shadow_mode(), |
- subFilter.get(), |
- nullptr)); |
+ case DROP_SHADOW: |
+ filter = SkDropShadowImageFilter::Make(make_scalar(), |
+ make_scalar(), |
+ make_scalar(true), |
+ make_scalar(true), |
+ make_color(), |
+ make_shadow_mode(), |
+ make_image_filter(), |
+ nullptr); |
break; |
- } |
case MORPHOLOGY: |
if (R(2) == 1) { |
filter = SkDilateImageFilter::Make(R(static_cast<float>(kBitmapSize)), |