Index: fuzz/FilterFuzz.cpp |
diff --git a/fuzz/FilterFuzz.cpp b/fuzz/FilterFuzz.cpp |
index 791fe01a33e2be5f5dfc8d98fd8bb5adfa1ba275..484bbf7624dda68dc2a712189622d9760e17f882 100644 |
--- a/fuzz/FilterFuzz.cpp |
+++ b/fuzz/FilterFuzz.cpp |
@@ -706,17 +706,13 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) { |
} |
break; |
} |
- case DISPLACE: { |
- sk_sp<SkImageFilter> subFilter1(make_image_filter(false)); |
- sk_sp<SkImageFilter> subFilter2(make_image_filter()); |
- |
- filter = sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create(make_channel_selector_type(), |
- make_channel_selector_type(), |
- make_scalar(), |
- subFilter1.get(), |
- subFilter2.get())); |
+ case DISPLACE: |
+ filter = SkDisplacementMapEffect::Make(make_channel_selector_type(), |
+ make_channel_selector_type(), |
+ make_scalar(), |
+ make_image_filter(false), |
+ make_image_filter()); |
break; |
- } |
case TILE: { |
sk_sp<SkImageFilter> subFilter(make_image_filter(false)); |