Index: src/codec/SkAndroidCodec.cpp |
diff --git a/src/codec/SkAndroidCodec.cpp b/src/codec/SkAndroidCodec.cpp |
index d309d58501a80004c573e2dcbc39d440967a4f85..6c3113ccfc53505c81231941891a4e79687fd9c0 100644 |
--- a/src/codec/SkAndroidCodec.cpp |
+++ b/src/codec/SkAndroidCodec.cpp |
@@ -8,6 +8,9 @@ |
#include "SkAndroidCodec.h" |
#include "SkCodec.h" |
#include "SkCodecPriv.h" |
+#ifdef SK_CODEC_DECODES_RAW |
+#include "SkRawAdapterCodec.h" |
+#endif |
#include "SkSampledCodec.h" |
#include "SkWebpAdapterCodec.h" |
@@ -37,6 +40,10 @@ SkAndroidCodec* SkAndroidCodec::NewFromStream(SkStream* stream, SkPngChunkReader |
case kGIF_SkEncodedFormat: |
case kICO_SkEncodedFormat: |
return new SkSampledCodec(codec.detach()); |
+#ifdef SK_CODEC_DECODES_RAW |
+ case kRAW_SkEncodedFormat: |
+ return new SkRawAdapterCodec((SkRawCodec*)codec.detach()); |
+#endif |
default: |
return nullptr; |
} |