Index: src/core/SkColorFilterShader.cpp |
diff --git a/src/core/SkColorFilterShader.cpp b/src/core/SkColorFilterShader.cpp |
index f5a3b9c9e16e20e781308aa09d20d01a10f8dda1..2e426a17eded3255f99f12f562cda2b86f510691 100644 |
--- a/src/core/SkColorFilterShader.cpp |
+++ b/src/core/SkColorFilterShader.cpp |
@@ -137,10 +137,10 @@ void SkColorFilterShader::toString(SkString* str) const { |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
-SkShader* SkShader::newWithColorFilter(SkColorFilter* filter) const { |
+sk_sp<SkShader> SkShader::makeWithColorFilter(SkColorFilter* filter) const { |
SkShader* base = const_cast<SkShader*>(this); |
if (!filter) { |
- return SkRef(base); |
+ return sk_ref_sp(base); |
} |
- return new SkColorFilterShader(base, filter); |
+ return sk_make_sp<SkColorFilterShader>(base, filter); |
} |