| Index: src/ports/SkImageDecoder_CG.cpp
|
| diff --git a/src/ports/SkImageDecoder_CG.cpp b/src/ports/SkImageDecoder_CG.cpp
|
| index 90c282dc9b058765b0f48cf96733742fd56eea38..c61ce98a8bc50096ad7a5a4a44913bfe55a4df8c 100644
|
| --- a/src/ports/SkImageDecoder_CG.cpp
|
| +++ b/src/ports/SkImageDecoder_CG.cpp
|
| @@ -208,8 +208,8 @@ bool SkImageEncoder_CG::onEncode(SkWStream* stream, const SkBitmap& bm,
|
| // format.
|
| // <Error>: CGImageDestinationFinalize image destination does not have enough images
|
| // So instead we copy to 8888.
|
| - if (bm.config() == SkBitmap::kARGB_4444_Config) {
|
| - bm.copyTo(&bitmap8888, SkBitmap::kARGB_8888_Config);
|
| + if (bm.colorType() == kARGB_4444_SkColorType) {
|
| + bm.copyTo(&bitmap8888, kPMColor_SkColorType);
|
| bmPtr = &bitmap8888;
|
| }
|
| type = kUTTypePNG;
|
|
|