Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index 91b2c09b2bd51df213a2f716f69448a17cd5e677..613ec302c91f96e422b8e19e2bcc473e88fe7a10 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -300,6 +300,9 @@ DEF_TEST(ImageFilterDrawTiled, reporter) { |
SkScalar gain = SK_Scalar1, bias = 0; |
SkAutoTUnref<SkImageFilter> gradient_source(SkBitmapSource::Create(make_gradient_circle(64, 64))); |
+ SkMatrix matrix; |
+ matrix.setTranslate(SK_Scalar1, SK_Scalar1); |
+ matrix.postRotate(SkIntToScalar(45), SK_Scalar1, SK_Scalar1); |
struct { |
const char* fName; |
@@ -327,6 +330,7 @@ DEF_TEST(ImageFilterDrawTiled, reporter) { |
{ "erode", SkErodeImageFilter::Create(2, 3) }, |
{ "tile", SkTileImageFilter::Create(SkRect::MakeXYWH(0, 0, 50, 50), |
SkRect::MakeXYWH(0, 0, 100, 100), NULL) }, |
+ { "matrix", SkMatrixImageFilter::Create(matrix, SkPaint::kLow_FilterLevel) }, |
}; |
SkBitmap untiledResult, tiledResult; |