aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkJpegCodec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec/SkJpegCodec.h')
-rw-r--r--src/codec/SkJpegCodec.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h
index 1844269e6b..5e2135cdff 100644
--- a/src/codec/SkJpegCodec.h
+++ b/src/codec/SkJpegCodec.h
@@ -18,6 +18,8 @@ extern "C" {
#include "jpeglib.h"
}
+class SkScanlineDecoder;
+
/*
*
* This class implements the decoding for jpeg images
@@ -39,6 +41,13 @@ public:
*/
static SkCodec* NewFromStream(SkStream*);
+ /*
+ * Assumes IsJpeg was called and returned true
+ * Creates a jpeg scanline decoder
+ * Takes ownership of the stream
+ */
+ static SkScanlineDecoder* NewSDFromStream(SkStream*);
+
protected:
/*
@@ -56,9 +65,6 @@ protected:
return kJPEG_SkEncodedFormat;
}
- SkScanlineDecoder* onGetScanlineDecoder(const SkImageInfo& dstInfo, const Options& options,
- SkPMColor ctable[], int* ctableCount) override;
-
private:
/*