Index: src/codec/SkCodec_wbmp.h |
diff --git a/src/codec/SkCodec_wbmp.h b/src/codec/SkCodec_wbmp.h |
index 0891eb86b9da1a6117540af85587e661dbf00a5b..220570b0db790c8f7b8cb6ffb1d3c1f928938056 100644 |
--- a/src/codec/SkCodec_wbmp.h |
+++ b/src/codec/SkCodec_wbmp.h |
@@ -9,7 +9,6 @@ |
#define SkCodec_wbmp_DEFINED |
#include "SkCodec.h" |
-#include "SkScanlineDecoder.h" |
#include "SkSwizzler.h" |
class SkWbmpCodec final : public SkCodec { |
@@ -23,12 +22,6 @@ public: |
*/ |
static SkCodec* NewFromStream(SkStream*); |
- /* |
- * Assumes IsWbmp was called and returned true |
- * Creates a wbmp scanline decoder |
- * Takes ownership of the stream |
- */ |
- static SkScanlineDecoder* NewSDFromStream(SkStream*); |
protected: |
SkEncodedFormat onGetEncodedFormat() const override; |
Result onGetPixels(const SkImageInfo&, void*, size_t, |
@@ -50,7 +43,16 @@ private: |
const size_t fSrcRowBytes; |
- friend class SkWbmpScanlineDecoder; |
+ // Used for scanline decodes: |
+ SkAutoTUnref<SkColorTable> fColorTable; |
+ SkAutoTDelete<SkSwizzler> fSwizzler; |
+ SkAutoTMalloc<uint8_t> fSrcBuffer; |
+ |
+ // FIXME: Override onSkipScanlines to avoid swizzling. |
+ Result onGetScanlines(void* dst, int count, size_t dstRowBytes) override; |
+ Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& options, |
+ SkPMColor inputColorTable[], int* inputColorCount) override; |
+ |
typedef SkCodec INHERITED; |
}; |