aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/bitmapfilters.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/bitmapfilters.cpp')
-rw-r--r--gm/bitmapfilters.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/bitmapfilters.cpp b/gm/bitmapfilters.cpp
index 5856f87f66..7addf25c01 100644
--- a/gm/bitmapfilters.cpp
+++ b/gm/bitmapfilters.cpp
@@ -20,8 +20,9 @@ static void make_bm(SkBitmap* bm) {
}
SkColorTable* ctable = new SkColorTable(colorsPM, 4);
- bm->setConfig(SkBitmap::kIndex8_Config, 2, 2);
- bm->allocPixels(ctable);
+ bm->allocPixels(SkImageInfo::Make(2, 2, kIndex_8_SkColorType,
+ kPremul_SkAlphaType),
+ NULL, ctable);
ctable->unref();
*bm->getAddr8(0, 0) = 0;