| Index: src/codec/SkCodec_libpng.cpp
|
| diff --git a/src/codec/SkCodec_libpng.cpp b/src/codec/SkCodec_libpng.cpp
|
| index f23990095ba40bba5a36f8c8b7dab1caf84353f6..aa897826dfee73490b7174d9192ca535e8e9115c 100644
|
| --- a/src/codec/SkCodec_libpng.cpp
|
| +++ b/src/codec/SkCodec_libpng.cpp
|
| @@ -391,28 +391,6 @@ void SkPngCodec::destroyReadStruct() {
|
| // Getting the pixels
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| -static bool conversion_possible(const SkImageInfo& dst, const SkImageInfo& src) {
|
| - // TODO: Support other conversions
|
| - if (dst.profileType() != src.profileType()) {
|
| - return false;
|
| - }
|
| -
|
| - // Ensure the alpha type is valid
|
| - if (!valid_alpha(dst.alphaType(), src.alphaType())) {
|
| - return false;
|
| - }
|
| -
|
| - // Check for supported color types
|
| - switch (dst.colorType()) {
|
| - case kN32_SkColorType:
|
| - return true;
|
| - case kRGB_565_SkColorType:
|
| - return src.alphaType() == kOpaque_SkAlphaType;
|
| - default:
|
| - return dst.colorType() == src.colorType();
|
| - }
|
| -}
|
| -
|
| SkCodec::Result SkPngCodec::initializeSwizzler(const SkImageInfo& requestedInfo,
|
| const Options& options,
|
| SkPMColor ctable[],
|
|
|