Index: gm/imagefilters.cpp |
diff --git a/gm/imagefilters.cpp b/gm/imagefilters.cpp |
index 21ce0fef9709d25d678bcaf249b4700713dd6965..24a08ff865f8a44e7c638270b5fb8c6c33cd15d5 100644 |
--- a/gm/imagefilters.cpp |
+++ b/gm/imagefilters.cpp |
@@ -140,7 +140,7 @@ |
DEF_SIMPLE_GM(savelayer_with_backdrop, canvas, 830, 550) { |
SkColorMatrix cm; |
cm.setSaturation(10); |
- auto cf(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat)); |
+ SkAutoTUnref<SkColorFilter> cf(SkColorMatrixFilter::Create(cm)); |
const SkScalar kernel[] = { 4, 0, 4, 0, -15, 0, 4, 0, 4 }; |
SkImageFilter* filters[] = { |
SkBlurImageFilter::Create(10, 10), |
@@ -148,7 +148,7 @@ |
SkMatrixConvolutionImageFilter::Create({ 3, 3 }, kernel, 1, 0, { 0, 0 }, |
SkMatrixConvolutionImageFilter::kClampToBlack_TileMode, |
true), |
- SkColorFilterImageFilter::Create(cf.get()), |
+ SkColorFilterImageFilter::Create(cf), |
}; |
const struct { |