| Index: src/core/SkPictureShader.cpp
|
| diff --git a/src/core/SkPictureShader.cpp b/src/core/SkPictureShader.cpp
|
| index dc5c90b62e8ec7eb14fc31413f2f3d78ec1afabe..466c5e128609bae0df2d4ab48ba903367b73d9cf 100644
|
| --- a/src/core/SkPictureShader.cpp
|
| +++ b/src/core/SkPictureShader.cpp
|
| @@ -91,13 +91,12 @@ SkShader* SkPictureShader::refBitmapShader(const SkMatrix& matrix) const {
|
| canvas.scale(tileScale.width(), tileScale.height());
|
| canvas.drawPicture(*fPicture);
|
|
|
| - fCachedBitmapShader.reset(CreateBitmapShader(bm, fTmx, fTmy));
|
| fCachedTileScale = tileScale;
|
| fCachedLocalMatrix = this->getLocalMatrix();
|
|
|
| SkMatrix shaderMatrix = this->getLocalMatrix();
|
| shaderMatrix.preScale(1 / tileScale.width(), 1 / tileScale.height());
|
| - fCachedBitmapShader->setLocalMatrix(shaderMatrix);
|
| + fCachedBitmapShader.reset(CreateBitmapShader(bm, fTmx, fTmy, &shaderMatrix));
|
| }
|
|
|
| // Increment the ref counter inside the mutex to ensure the returned pointer is still valid.
|
|
|