Index: gm/imagefilterscropped.cpp |
diff --git a/gm/imagefilterscropped.cpp b/gm/imagefilterscropped.cpp |
index 767973d07d1356448c92a1c2631e3a56f01fdc3f..bdf925cc446830805befd291261ace2010939303 100644 |
--- a/gm/imagefilterscropped.cpp |
+++ b/gm/imagefilterscropped.cpp |
@@ -133,8 +133,13 @@ protected: |
SkAutoTUnref<SkColorFilter> cf( |
SkColorFilter::CreateModeFilter(SK_ColorBLUE, SkXfermode::kSrcIn_Mode)); |
+#ifdef SK_CROP_RECT_IS_INT |
SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); |
SkIRect bogusRect = SkIRect::MakeXYWH(-100, -100, 10, 10); |
+#else |
+ SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), SkImageFilter::CropRect::kHasAll_CropEdge); |
+ SkImageFilter::CropRect bogusRect(SkRect::Make(SkIRect::MakeXYWH(-100, -100, 10, 10)), SkImageFilter::CropRect::kHasAll_CropEdge); |
+#endif |
SkAutoTUnref<SkImageFilter> offset(new SkOffsetImageFilter( |
SkIntToScalar(-10), SkIntToScalar(-10))); |