Index: tests/ShaderImageFilterTest.cpp |
diff --git a/tests/ShaderImageFilterTest.cpp b/tests/ShaderImageFilterTest.cpp |
index 78aa796caae324461fcbd9b31f1f64c6dc4f96c3..49fc6e040b8dd16220de7cc9dda7d8c0309c4fb9 100644 |
--- a/tests/ShaderImageFilterTest.cpp |
+++ b/tests/ShaderImageFilterTest.cpp |
@@ -37,7 +37,8 @@ static void test_asShaderMode(skiatest::Reporter* reporter) { |
SkShader* s = SkGradientShader::CreateRadial( |
center, radius, colors, pos, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode); |
SkPaint paint; |
- paint.setImageFilter(SkRectShaderImageFilter::Create(s, r))->unref(); |
+ SkImageFilter::CropRect cr(r); |
+ paint.setImageFilter(SkRectShaderImageFilter::Create(s, &cr))->unref(); |
canvasFilter.drawRect(r, paint); |
s->unref(); |
} |