Index: gm/tinybitmap.cpp |
diff --git a/gm/tinybitmap.cpp b/gm/tinybitmap.cpp |
index 6cb9eded73944c1f7fd400ebbea9842e8755ae72..92bf7c645f1d3e8d19409d32e234f3b3ce388b8d 100644 |
--- a/gm/tinybitmap.cpp |
+++ b/gm/tinybitmap.cpp |
@@ -18,8 +18,9 @@ static SkBitmap make_bitmap() { |
SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kIndex8_Config, 1, 1); |
- bm.allocPixels(ctable); |
+ bm.allocPixels(SkImageInfo::Make(1, 1, kIndex_8_SkColorType, |
+ kPremul_SkAlphaType), |
+ NULL, ctable); |
ctable->unref(); |
bm.lockPixels(); |