Index: gm/tileimagefilter.cpp |
diff --git a/gm/tileimagefilter.cpp b/gm/tileimagefilter.cpp |
index cf8825e5bb9d105600954edb96334ab1bfb7ae84..f75e7f97221553f2cd31b6cab14a46d0fd14d201 100644 |
--- a/gm/tileimagefilter.cpp |
+++ b/gm/tileimagefilter.cpp |
@@ -93,9 +93,9 @@ protected: |
SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), |
SkIntToScalar(fBitmap->height() * 2)); |
SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(srcRect, dstRect, nullptr)); |
- SkAutoTUnref<SkColorFilter> cf(SkColorMatrixFilter::Create(matrix)); |
+ auto cf(SkColorFilter::MakeMatrixFilterRowMajor255(matrix)); |
- SkAutoTUnref<SkImageFilter> cfif(SkColorFilterImageFilter::Create(cf, tile.get())); |
+ SkAutoTUnref<SkImageFilter> cfif(SkColorFilterImageFilter::Create(cf.get(), tile.get())); |
SkPaint paint; |
paint.setImageFilter(cfif); |
canvas->save(); |