aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkLayerRasterizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/SkLayerRasterizer.cpp')
-rw-r--r--src/effects/SkLayerRasterizer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/effects/SkLayerRasterizer.cpp b/src/effects/SkLayerRasterizer.cpp
index 6381c4d694..65ebd8ad1a 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;