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