Index: src/core/SkPictureShader.cpp |
diff --git a/src/core/SkPictureShader.cpp b/src/core/SkPictureShader.cpp |
index a6644aacbab362152fc9691255cc8b73442bc9ed..c2a0b74e23b9e9199deacae402410daf75a9f4aa 100644 |
--- a/src/core/SkPictureShader.cpp |
+++ b/src/core/SkPictureShader.cpp |
@@ -231,7 +231,7 @@ sk_sp<SkShader> SkPictureShader::refBitmapShader(const SkMatrix& viewMatrix, con |
SkMatrix shaderMatrix = this->getLocalMatrix(); |
shaderMatrix.preScale(1 / tileScale.width(), 1 / tileScale.height()); |
- tileShader.reset(tileImage->newShader(fTmx, fTmy, &shaderMatrix)); |
+ tileShader = tileImage->makeShader(fTmx, fTmy, &shaderMatrix); |
const SkImageInfo tileInfo = SkImageInfo::MakeN32Premul(tileSize); |
SkResourceCache::Add(new BitmapShaderRec(key, tileShader.get(), |