Index: samplecode/SampleBlur.cpp |
diff --git a/samplecode/SampleBlur.cpp b/samplecode/SampleBlur.cpp |
index d951d8508b528961c9444405835294ac6d541123..a918bf217b7d9a9582e36018fe1b74d9057d2bc0 100644 |
--- a/samplecode/SampleBlur.cpp |
+++ b/samplecode/SampleBlur.cpp |
@@ -23,8 +23,9 @@ static SkBitmap make_bitmap() { |
SkBitmap bm; |
SkColorTable* ctable = new SkColorTable(c, 256); |
- bm.setConfig(SkBitmap::kIndex8_Config, 256, 256); |
- bm.allocPixels(ctable); |
+ bm.allocPixels(SkImageInfo::Make(256, 256, kIndex_8_SkColorType, |
+ kPremul_SkAlphaType), |
+ NULL, ctable); |
ctable->unref(); |
bm.lockPixels(); |