Index: src/effects/SkTileImageFilter.cpp |
diff --git a/src/effects/SkTileImageFilter.cpp b/src/effects/SkTileImageFilter.cpp |
index 5496f3003215a5f7254f4489239b8820d3c30483..f3bad76345232436f96318f67b8ed2bca10c6856 100644 |
--- a/src/effects/SkTileImageFilter.cpp |
+++ b/src/effects/SkTileImageFilter.cpp |
@@ -60,12 +60,12 @@ bool SkTileImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& src, |
SkPaint paint; |
paint.setXfermodeMode(SkXfermode::kSrc_Mode); |
- SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(subset, |
- SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode)); |
SkMatrix shaderMatrix; |
shaderMatrix.setTranslate(SkIntToScalar(srcOffset.fX), |
SkIntToScalar(srcOffset.fY)); |
- shader->setLocalMatrix(shaderMatrix); |
+ SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(subset, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, |
+ &shaderMatrix)); |
paint.setShader(shader); |
canvas.translate(-dstRect.fLeft, -dstRect.fTop); |
canvas.drawRect(dstRect, paint); |