Index: src/images/SkImageDecoder_libpng.cpp |
diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp |
index 4047fea85098fb4e30398309073ad15199bdddaf..e46def4cab49345643a94511a123804e31e4bde5 100644 |
--- a/src/images/SkImageDecoder_libpng.cpp |
+++ b/src/images/SkImageDecoder_libpng.cpp |
@@ -1123,7 +1123,7 @@ private: |
bool SkPNGImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, |
int /*quality*/) { |
- SkBitmap::Config config = bitmap.getConfig(); |
+ SkBitmap::Config config = bitmap.config(); |
const bool hasAlpha = !bitmap.isOpaque(); |
int colorType = PNG_COLOR_MASK_COLOR; |