Index: src/effects/SkTileImageFilter.cpp |
diff --git a/src/effects/SkTileImageFilter.cpp b/src/effects/SkTileImageFilter.cpp |
index 66cad47ad031dda661e88d0ef5df09bb55cc2409..dff8e9bbfc7264d6756251ac38f9aa9d26736dae 100644 |
--- a/src/effects/SkTileImageFilter.cpp |
+++ b/src/effects/SkTileImageFilter.cpp |
@@ -96,10 +96,8 @@ bool SkTileImageFilter::onFilterImageDeprecated(Proxy* proxy, const SkBitmap& sr |
SkCanvas canvas(device); |
SkPaint paint; |
paint.setXfermodeMode(SkXfermode::kSrc_Mode); |
- |
- SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(subset, |
- SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode)); |
- paint.setShader(shader); |
+ paint.setShader(SkShader::MakeBitmapShader(subset, SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode)); |
canvas.translate(-dstRect.fLeft, -dstRect.fTop); |
canvas.drawRect(dstRect, paint); |
*dst = device->accessBitmap(false); |