aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleFilterFuzz.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleFilterFuzz.cpp')
-rw-r--r--samplecode/SampleFilterFuzz.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp
index 5f06731ae5..12b6a8af99 100644
--- a/samplecode/SampleFilterFuzz.cpp
+++ b/samplecode/SampleFilterFuzz.cpp
@@ -709,17 +709,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));