Index: src/effects/SkTableColorFilter.cpp |
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp |
index 203f0583642c6cd7f2ad4d67599a6870d5da8694..2872ed14b0b15bd34c00391863d6a2b9bf661c43 100644 |
--- a/src/effects/SkTableColorFilter.cpp |
+++ b/src/effects/SkTableColorFilter.cpp |
@@ -203,8 +203,7 @@ bool SkTable_ColorFilter::asComponentTable(SkBitmap* table) const { |
if (table) { |
if (NULL == fBitmap) { |
SkBitmap* bmp = SkNEW(SkBitmap); |
- bmp->setConfig(SkBitmap::kA8_Config, 256, 4, 256); |
- bmp->allocPixels(); |
+ bmp->allocPixels(SkImageInfo::MakeA8(256, 4)); |
uint8_t* bitmapPixels = bmp->getAddr8(0, 0); |
int offset = 0; |
static const unsigned kFlags[] = { kA_Flag, kR_Flag, kG_Flag, kB_Flag }; |