Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index fa4a4b8fd1ec9634742b2da9964646058f27b69f..aff15515d4ad624349790c4b5c1d29a9b9e9516f 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -198,13 +198,13 @@ void SkBaseDevice::drawAtlas(const SkDraw& draw, const SkImage* atlas, const SkR |
localM.preTranslate(-tex[i].left(), -tex[i].top()); |
SkPaint pnt(paint); |
- SkAutoTUnref<SkShader> shader(atlas->newShader(SkShader::kClamp_TileMode, |
- SkShader::kClamp_TileMode, |
- &localM)); |
+ sk_sp<SkShader> shader = atlas->makeShader(SkShader::kClamp_TileMode, |
+ SkShader::kClamp_TileMode, |
+ &localM); |
if (!shader) { |
break; |
} |
- pnt.setShader(shader); |
+ pnt.setShader(std::move(shader)); |
if (colors) { |
SkAutoTUnref<SkColorFilter> cf(SkColorFilter::CreateModeFilter(colors[i], mode)); |