diff options
Diffstat (limited to 'gm/imagefilters.cpp')
-rw-r--r-- | gm/imagefilters.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/imagefilters.cpp b/gm/imagefilters.cpp index 10072c897e..f1f1b80ac9 100644 --- a/gm/imagefilters.cpp +++ b/gm/imagefilters.cpp @@ -139,11 +139,11 @@ static void draw_set(SkCanvas* canvas, SkImageFilter* filters[], int count) { DEF_SIMPLE_GM(savelayer_with_backdrop, canvas, 830, 550) { SkColorMatrix cm; cm.setSaturation(10); - auto cf(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat)); + sk_sp<SkColorFilter> cf(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat)); const SkScalar kernel[] = { 4, 0, 4, 0, -15, 0, 4, 0, 4 }; SkImageFilter* filters[] = { SkBlurImageFilter::Make(10, 10, nullptr).release(), - SkDilateImageFilter::Create(8, 8), + SkDilateImageFilter::Make(8, 8, nullptr).release(), SkMatrixConvolutionImageFilter::Create({ 3, 3 }, kernel, 1, 0, { 0, 0 }, SkMatrixConvolutionImageFilter::kClampToBlack_TileMode, true), |