Index: samplecode/SampleAAClip.cpp |
diff --git a/samplecode/SampleAAClip.cpp b/samplecode/SampleAAClip.cpp |
index 5419f68ed19c4d5aa04eefc804e381a27bfdcc4c..a1ee67b75f739327e92a3848f0cbaf8dfbac0289 100644 |
--- a/samplecode/SampleAAClip.cpp |
+++ b/samplecode/SampleAAClip.cpp |
@@ -46,9 +46,7 @@ static void drawClip(SkCanvas* canvas, const SkAAClip& clip) { |
clip.copyToMask(&mask); |
SkAutoMaskFreeImage amfi(mask.fImage); |
- bm.installPixels(SkImageInfo::MakeA8(mask.fBounds.width(), |
- mask.fBounds.height()), |
- mask.fImage, mask.fRowBytes, NULL, NULL); |
+ bm.installMaskPixels(mask); |
SkPaint paint; |
canvas->drawBitmap(bm, |