Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 751ef9be393db03f2345aa6ad4e2a5b344bf2925..103d8c4a56db4d717db2bf36c2b5383d6ef4c28f 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -646,13 +646,9 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) { |
&cropR)); |
break; |
} |
- case COMPOSE: { |
- sk_sp<SkImageFilter> subFilter1(make_image_filter()); |
- sk_sp<SkImageFilter> subFilter2(make_image_filter()); |
- filter = sk_sp<SkImageFilter>(SkComposeImageFilter::Create(subFilter1.get(), |
- subFilter2.get())); |
+ case COMPOSE: |
+ filter = SkComposeImageFilter::Make(make_image_filter(), make_image_filter()); |
break; |
- } |
case DISTANT_LIGHT: { |
sk_sp<SkImageFilter> subFilter(make_image_filter()); |