Index: gm/fadefilter.cpp |
diff --git a/gm/fadefilter.cpp b/gm/fadefilter.cpp |
index 6f64e1e30e3d1e54df1ee32e0972bb8c97ba00fc..386e32b098c6a351430917d0fef4942e68394b95 100644 |
--- a/gm/fadefilter.cpp |
+++ b/gm/fadefilter.cpp |
@@ -15,10 +15,8 @@ DEF_SIMPLE_GM(fadefilter, canvas, 256, 256) { |
0, 1, 0, 0, 128.0f, |
0, 0, 1, 0, 128.0f, |
0, 0, 0, 1, 0 }; |
- SkAutoTUnref<SkColorFilter> colorFilter( |
- SkColorMatrixFilter::Create(matrix)); |
- SkAutoTUnref<SkImageFilter> filter( |
- SkColorFilterImageFilter::Create(colorFilter)); |
+ auto colorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(matrix)); |
+ SkAutoTUnref<SkImageFilter> filter(SkColorFilterImageFilter::Create(colorFilter.get())); |
SkPaint layerPaint; |
layerPaint.setImageFilter(filter); |
canvas->drawRect(SkRect::MakeLTRB(64, 64, 192, 192), layerPaint); |