Index: src/effects/SkLayerRasterizer.cpp |
diff --git a/src/effects/SkLayerRasterizer.cpp b/src/effects/SkLayerRasterizer.cpp |
index 65ebd8ad1a61a29987d70e0ee360e03d58bbdbe6..a10d758ede45a54938802689c8b2ccb8a41640a2 100644 |
--- a/src/effects/SkLayerRasterizer.cpp |
+++ b/src/effects/SkLayerRasterizer.cpp |
@@ -122,9 +122,7 @@ bool SkLayerRasterizer::onRasterize(const SkPath& path, const SkMatrix& matrix, |
translatedMatrix.postTranslate(-SkIntToScalar(mask->fBounds.fLeft), |
-SkIntToScalar(mask->fBounds.fTop)); |
- device.installPixels(SkImageInfo::MakeA8(mask->fBounds.width(), |
- mask->fBounds.height()), |
- mask->fImage, mask->fRowBytes, NULL, NULL); |
+ device.installMaskPixels(*mask); |
draw.fBitmap = &device; |
draw.fMatrix = &drawMatrix; |