Index: samplecode/SampleDitherBitmap.cpp |
diff --git a/samplecode/SampleDitherBitmap.cpp b/samplecode/SampleDitherBitmap.cpp |
index e05d074f3b1ee4b8fc5b40b125c564502dd7183b..d825c71a505a3ccef223c83758a116154774aa79 100644 |
--- a/samplecode/SampleDitherBitmap.cpp |
+++ b/samplecode/SampleDitherBitmap.cpp |
@@ -57,11 +57,10 @@ static SkBitmap make_bitmap() { |
for (int i = 0; i < 256; i++) { |
c[i] = SkPackARGB32(0xFF, i, 0, 0); |
} |
- SkColorTable* ctable = new SkColorTable(c, 256, kOpaque_SkAlphaType); |
+ SkColorTable* ctable = new SkColorTable(c, 256); |
SkBitmap bm; |
- bm.allocPixels(SkImageInfo::Make(256, 32, kIndex_8_SkColorType, |
- kPremul_SkAlphaType), |
+ bm.allocPixels(SkImageInfo::Make(256, 32, kIndex_8_SkColorType, kPremul_SkAlphaType), |
NULL, ctable); |
ctable->unref(); |