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