Chromium Code Reviews| Index: src/codec/SkCodec.cpp |
| diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp |
| index 87a7ded7dd6bd2e0c0a6da19de1d9782a50553c3..7c12e009141a91fd7d18ccdd9587695940d0fb8f 100644 |
| --- a/src/codec/SkCodec.cpp |
| +++ b/src/codec/SkCodec.cpp |
| @@ -18,6 +18,7 @@ |
| #endif |
| #include "SkStream.h" |
| #include "SkWebpCodec.h" |
| +#include "SkRawCodec.h" |
| struct DecoderProc { |
| bool (*IsFormat)(const void*, size_t); |
| @@ -85,6 +86,11 @@ SkCodec* SkCodec::NewFromStream(SkStream* stream, |
| break; |
| } |
| } |
| + |
| + // Try to treat the input as RAW if all the other checks failed. |
| + if (!codec) { |
|
scroggo
2016/01/07 13:53:20
I think this is a TAB? We use spaces instead.
yujieqin
2016/01/07 15:52:01
Done.
|
| + codec.reset(SkRawCodec::NewFromStream(streamDeleter.detach())); |
| + } |
| } |
| // Set the max size at 128 megapixels (512 MB for kN32). |