Index: src/codec/SkCodec.cpp |
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp |
index 0da36bb17182ad298060ee110911d6d288dd925d..bb7b26529b9af8fe7c106818e5514c47617cdf76 100644 |
--- a/src/codec/SkCodec.cpp |
+++ b/src/codec/SkCodec.cpp |
@@ -162,15 +162,6 @@ SkCodec::Result SkCodec::getPixels(const SkImageInfo& info, void* pixels, size_t |
ctable = nullptr; |
} |
- { |
- SkAlphaType canonical; |
- if (!SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &canonical) |
- || canonical != info.alphaType()) |
- { |
- return kInvalidConversion; |
- } |
- } |
- |
if (!this->rewindIfNeeded()) { |
return kCouldNotRewind; |
} |