Index: gm/testimagefilters.cpp |
diff --git a/gm/testimagefilters.cpp b/gm/testimagefilters.cpp |
index 465d606e2ba5315d72de6d2b1f5bb9cb89c0ac8b..1ea9575c7c9fa492b3a42d8e3eacded3a62675a8 100644 |
--- a/gm/testimagefilters.cpp |
+++ b/gm/testimagefilters.cpp |
@@ -24,8 +24,10 @@ |
static SkImageFilter* make0() { return SkDownSampleImageFilter::Create(SK_Scalar1 / 5); } |
static SkImageFilter* make1() { return SkOffsetImageFilter::Create(SkIntToScalar(16), SkIntToScalar(16)); } |
static SkImageFilter* make2() { |
- auto cf = SkColorFilter::MakeModeFilter(SK_ColorBLUE, SkXfermode::kSrcIn_Mode); |
- return SkColorFilterImageFilter::Create(cf.get()); |
+ SkColorFilter* cf = SkColorFilter::CreateModeFilter(SK_ColorBLUE, |
+ SkXfermode::kSrcIn_Mode); |
+ SkAutoUnref aur(cf); |
+ return SkColorFilterImageFilter::Create(cf); |
} |
static SkImageFilter* make3() { |
return SkBlurImageFilter::Create(8, 0); |
@@ -54,8 +56,10 @@ |
SkImageFilter* compose = SkComposeImageFilter::Create(outer, inner); |
SkAutoUnref aur2(compose); |
- auto cf = SkColorFilter::MakeModeFilter(0x880000FF, SkXfermode::kSrcIn_Mode); |
- SkImageFilter* blue = SkColorFilterImageFilter::Create(cf.get()); |
+ SkColorFilter* cf = SkColorFilter::CreateModeFilter(0x880000FF, |
+ SkXfermode::kSrcIn_Mode); |
+ SkAutoUnref aur3(cf); |
+ SkImageFilter* blue = SkColorFilterImageFilter::Create(cf); |
SkAutoUnref aur4(blue); |
return SkMergeImageFilter::Create(compose, blue); |
@@ -69,8 +73,10 @@ |
SkImageFilter* compose = SkComposeImageFilter::Create(outer, inner); |
SkAutoUnref aur2(compose); |
- auto cf = SkColorFilter::MakeModeFilter(0x880000FF, SkXfermode::kSrcIn_Mode); |
- SkImageFilter* blue = SkColorFilterImageFilter::Create(cf.get()); |
+ SkColorFilter* cf = SkColorFilter::CreateModeFilter(0x880000FF, |
+ SkXfermode::kSrcIn_Mode); |
+ SkAutoUnref aur3(cf); |
+ SkImageFilter* blue = SkColorFilterImageFilter::Create(cf); |
SkAutoUnref aur4(blue); |
return SkMergeImageFilter::Create(compose, blue); |