| Index: src/codec/SkCodec.cpp
|
| diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp
|
| index 04ee7c6a4383736d11f738a7646a49fc9cd8b07c..08b2559aa9941796db1e98fee4c04dcb9c027d08 100644
|
| --- a/src/codec/SkCodec.cpp
|
| +++ b/src/codec/SkCodec.cpp
|
| @@ -15,6 +15,9 @@
|
| #if !defined(GOOGLE3)
|
| #include "SkJpegCodec.h"
|
| #endif
|
| +#ifdef SK_CODEC_DECODES_RAW
|
| +#include "SkRawCodec.h"
|
| +#endif
|
| #include "SkStream.h"
|
| #include "SkWbmpCodec.h"
|
| #include "SkWebpCodec.h"
|
| @@ -86,6 +89,11 @@ SkCodec* SkCodec::NewFromStream(SkStream* stream,
|
| return proc.NewFromStream(streamDeleter.detach());
|
| }
|
| }
|
| +
|
| +#ifdef SK_CODEC_DECODES_RAW
|
| + // Try to treat the input as RAW if all the other checks failed.
|
| + return SkRawCodec::NewFromStream(streamDeleter.detach());
|
| +#endif
|
| }
|
|
|
| return nullptr;
|
|
|