| Index: samplecode/SampleTextureDomain.cpp
|
| diff --git a/samplecode/SampleTextureDomain.cpp b/samplecode/SampleTextureDomain.cpp
|
| index 854df6ecfd9f0ea904937104bd8ff2075b8e2074..47a3ab0a09c0cef1ffd2f7d5118264ccfb73ed37 100644
|
| --- a/samplecode/SampleTextureDomain.cpp
|
| +++ b/samplecode/SampleTextureDomain.cpp
|
| @@ -13,8 +13,7 @@
|
|
|
| static SkBitmap make_bitmap() {
|
| SkBitmap bm;
|
| - bm.setConfig(SkBitmap::kARGB_8888_Config , 5, 5);
|
| - bm.allocPixels();
|
| + bm.allocN32Pixels(5, 5);
|
|
|
| for (int y = 0; y < bm.height(); y++) {
|
| uint32_t* p = bm.getAddr32(0, y);
|
|
|