| Index: samplecode/SampleWritePixels.cpp
|
| diff --git a/samplecode/SampleWritePixels.cpp b/samplecode/SampleWritePixels.cpp
|
| index 04f34840e1821be5a510a230993789bbfb95d438..f7829eaada5bdd17745ab87238a68d470daf1954 100644
|
| --- a/samplecode/SampleWritePixels.cpp
|
| +++ b/samplecode/SampleWritePixels.cpp
|
| @@ -19,8 +19,7 @@
|
| static void create_bitmap(SkBitmap* bitmap) {
|
| const int W = 100;
|
| const int H = 100;
|
| - bitmap->setConfig(SkBitmap::kARGB_8888_Config, W, H);
|
| - bitmap->allocPixels();
|
| + bitmap->allocN32Pixels(W, H);
|
|
|
| SkCanvas canvas(*bitmap);
|
| canvas.drawColor(SK_ColorRED);
|
|
|