Index: samplecode/SampleDither.cpp |
diff --git a/samplecode/SampleDither.cpp b/samplecode/SampleDither.cpp |
index 38d67ad7cf748858506d2d72787395657a4b29b6..57c7613d93dc761febaf67772cc43e5fa453ade5 100644 |
--- a/samplecode/SampleDither.cpp |
+++ b/samplecode/SampleDither.cpp |
@@ -70,14 +70,8 @@ static void draw_sweep(SkCanvas* c, int width, int height, SkScalar angle) { |
} |
static void make_bm(SkBitmap* bm) { |
- bm->setConfig(SkBitmap::kARGB_8888_Config, 100, 100); |
- bm->allocPixels(); |
-#if 0 |
- bm->eraseColor(SK_ColorBLUE); |
- return; |
-#else |
+ bm->allocN32Pixels(100, 100); |
bm->eraseColor(SK_ColorTRANSPARENT); |
-#endif |
SkCanvas c(*bm); |
draw_sweep(&c, bm->width(), bm->height(), 0); |