Index: src/codec/SkCodec.cpp |
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp |
index f1e69be59d065acf73c28e059355345d4073da73..c0fba18c15b9e327bfcb127661774b66026b8d5c 100644 |
--- a/src/codec/SkCodec.cpp |
+++ b/src/codec/SkCodec.cpp |
@@ -90,16 +90,7 @@ SkCodec* SkCodec::NewFromStream(SkStream* stream, |
} |
} |
- // Set the max size at 128 megapixels (512 MB for kN32). |
- // This is about 4x smaller than a test image that takes a few minutes for |
- // dm to decode and draw. |
- const int32_t maxSize = 1 << 27; |
- if (codec && codec->getInfo().width() * codec->getInfo().height() > maxSize) { |
- SkCodecPrintf("Error: Image size too large, cannot decode.\n"); |
- return nullptr; |
- } else { |
- return codec.detach(); |
- } |
+ return codec.detach(); |
} |
SkCodec* SkCodec::NewFromData(SkData* data, SkPngChunkReader* reader) { |