Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 31cd661699dbee1bb1df46d8d7f1a977c44d34fe..67c17fbe4c04a208544ee5b21b59d00392d131aa 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -597,13 +597,11 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) { |
case OFFSET: |
filter = SkOffsetImageFilter::Make(make_scalar(), make_scalar(), make_image_filter()); |
break; |
- case MATRIX: { |
- sk_sp<SkImageFilter> subFilter(make_image_filter()); |
- filter = sk_sp<SkImageFilter>(SkImageFilter::CreateMatrixFilter(make_matrix(), |
- (SkFilterQuality)R(4), |
- subFilter.get())); |
+ case MATRIX: |
+ filter = SkImageFilter::MakeMatrixFilter(make_matrix(), |
+ (SkFilterQuality)R(4), |
+ make_image_filter()); |
break; |
- } |
case MATRIX_CONVOLUTION: { |
SkImageFilter::CropRect cropR(SkRect::MakeWH(SkIntToScalar(kBitmapSize), |
SkIntToScalar(kBitmapSize))); |