Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index 2619c6ff10200199354b8674d4638b755379b835..6a6a7a92d645ac56bcb6d3e702cbf4c5e89a237e 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -1152,8 +1152,10 @@ DEF_TEST(ComposedImageFilterOffset, reporter) { |
SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(1, 0, 20, 20)); |
SkAutoTUnref<SkImageFilter> offsetFilter(SkOffsetImageFilter::Create(0, 0, nullptr, &cropRect)); |
- SkAutoTUnref<SkImageFilter> blurFilter(makeBlur()); |
- SkAutoTUnref<SkImageFilter> composedFilter(SkComposeImageFilter::Create(blurFilter, offsetFilter.get())); |
+ SkAutoTUnref<SkImageFilter> blurFilter(SkBlurImageFilter::Create(SK_Scalar1, SK_Scalar1, |
+ nullptr, &cropRect)); |
+ SkAutoTUnref<SkImageFilter> composedFilter(SkComposeImageFilter::Create(blurFilter, |
+ offsetFilter.get())); |
SkBitmap result; |
SkIPoint offset; |
SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeWH(100, 100), nullptr, SkImageFilter::kApprox_SizeConstraint); |