Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index c04292dadf633fbc50bd599c5e4a4fc3a392c9f6..b10fb31834c1f67966c81ab90c487375318d1354 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -231,9 +231,9 @@ static SkImageFilter* make_image_filter(bool canBeNull = true) { |
make_scalar(true), make_scalar(true), R(10.0f), make_scalar()) : |
SkPerlinNoiseShader::CreateTubulence( |
make_scalar(true), make_scalar(true), R(10.0f), make_scalar())); |
- filter = SkRectShaderImageFilter::Create(shader, |
- SkRect::MakeWH(SkIntToScalar(kBitmapSize), |
- SkIntToScalar(kBitmapSize))); |
+ SkImageFilter::CropRect cropR(SkRect::MakeWH(SkIntToScalar(kBitmapSize), |
+ SkIntToScalar(kBitmapSize))); |
+ filter = SkRectShaderImageFilter::Create(shader, &cropR); |
} |
break; |
case DROP_SHADOW: |