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