Index: gm/matriximagefilter.cpp |
diff --git a/gm/matriximagefilter.cpp b/gm/matriximagefilter.cpp |
index 3b4c0f6ecb47c3b3e4da4b5220c5595502c2af8f..ef16ea4bdc7b76a591b1b7aec6fb0de6b77b9894 100644 |
--- a/gm/matriximagefilter.cpp |
+++ b/gm/matriximagefilter.cpp |
@@ -11,10 +11,8 @@ |
static void draw(SkCanvas* canvas, const SkRect& rect, const SkBitmap& bitmap, |
const SkMatrix& matrix, SkFilterQuality filter) { |
- SkAutoTUnref<SkImageFilter> imageFilter( |
- SkImageFilter::CreateMatrixFilter(matrix, filter)); |
SkPaint paint; |
- paint.setImageFilter(imageFilter.get()); |
+ paint.setImageFilter(SkImageFilter::MakeMatrixFilter(matrix, filter, nullptr)); |
canvas->saveLayer(&rect, &paint); |
canvas->drawBitmap(bitmap, 0, 0); |
canvas->restore(); |