Index: src/images/SkImageDecoder.cpp |
diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp |
index 3c6ff69982bf903f470079240c567b91a464e340..b12418750525f6d6dd9704752fd90873899c3247 100644 |
--- a/src/images/SkImageDecoder.cpp |
+++ b/src/images/SkImageDecoder.cpp |
@@ -209,7 +209,7 @@ bool SkImageDecoder::cropBitmap(SkBitmap *dst, SkBitmap *src, int sampleSize, |
int srcX, int srcY) { |
int w = width / sampleSize; |
int h = height / sampleSize; |
- if (src->config() == SkBitmap::kIndex8_Config) { |
+ if (src->colorType() == kIndex_8_SkColorType) { |
// kIndex8 does not allow drawing via an SkCanvas, as is done below. |
// Instead, use extractSubset. Note that this shares the SkPixelRef and |
// SkColorTable. |