Index: src/images/SkImageDecoder.cpp |
diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp |
index 89bd0597c84df91439dcb4f2270b67ce30e93ae3..74c80bc73f9311b53549580bb400c8d4dd6286a4 100644 |
--- a/src/images/SkImageDecoder.cpp |
+++ b/src/images/SkImageDecoder.cpp |
@@ -229,7 +229,7 @@ bool SkImageDecoder::cropBitmap(SkBitmap *dst, SkBitmap *src, int sampleSize, |
int srcX, int srcY) { |
int w = width / sampleSize; |
int h = height / sampleSize; |
- if (src->getConfig() == SkBitmap::kIndex8_Config) { |
+ if (src->config() == SkBitmap::kIndex8_Config) { |
// kIndex8 does not allow drawing via an SkCanvas, as is done below. |
// Instead, use extractSubset. Note that this shares the SkPixelRef and |
// SkColorTable. |
@@ -245,7 +245,7 @@ bool SkImageDecoder::cropBitmap(SkBitmap *dst, SkBitmap *src, int sampleSize, |
} |
// if the destination has no pixels then we must allocate them. |
if (dst->isNull()) { |
- dst->setConfig(src->getConfig(), w, h, 0, src->alphaType()); |
+ dst->setConfig(src->config(), w, h, 0, src->alphaType()); |
if (!this->allocPixelRef(dst, NULL)) { |
SkDEBUGF(("failed to allocate pixels needed to crop the bitmap")); |