Index: src/core/SkPictureShader.cpp |
diff --git a/src/core/SkPictureShader.cpp b/src/core/SkPictureShader.cpp |
index 36b55cae6666053357ac73dd0d6f0c85727476d8..adf2bb63a8bbdffe7c7e5a95f61c3088f66b20e4 100644 |
--- a/src/core/SkPictureShader.cpp |
+++ b/src/core/SkPictureShader.cpp |
@@ -194,7 +194,9 @@ SkShader* SkPictureShader::refBitmapShader(const SkMatrix& matrix, const SkMatri |
} |
bm.eraseColor(SK_ColorTRANSPARENT); |
- SkCanvas canvas(bm); |
+ // Always disable LCD text, since we can't assume our image will be opaque. |
+ SkCanvas canvas(bm, SkSurfaceProps(0, kUnknown_SkPixelGeometry)); |
+ |
canvas.scale(tileScale.width(), tileScale.height()); |
canvas.translate(-fTile.x(), -fTile.y()); |
canvas.drawPicture(fPicture); |