aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images/SkImageDecoder_FactoryDefault.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/images/SkImageDecoder_FactoryDefault.cpp')
-rw-r--r--src/images/SkImageDecoder_FactoryDefault.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/images/SkImageDecoder_FactoryDefault.cpp b/src/images/SkImageDecoder_FactoryDefault.cpp
index ef8ddda830..77c0a0ac57 100644
--- a/src/images/SkImageDecoder_FactoryDefault.cpp
+++ b/src/images/SkImageDecoder_FactoryDefault.cpp
@@ -6,9 +6,18 @@
* found in the LICENSE file.
*/
+#include "SkImageDecoder.h"
#include "SkMovie.h"
#include "SkStream.h"
+extern SkImageDecoder* image_decoder_from_stream(SkStreamRewindable*);
+
+SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable* stream) {
+ return image_decoder_from_stream(stream);
+}
+
+/////////////////////////////////////////////////////////////////////////
+
typedef SkTRegistry<SkMovie*(*)(SkStreamRewindable*)> MovieReg;
SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) {