Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Unified Diff: src/codec/SkCodec_wbmp.h

Issue 1254483004: Scanline decoding for wbmp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/codec/SkCodec_wbmp.cpp » ('j') | src/codec/SkCodec_wbmp.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkCodec_wbmp.h
diff --git a/src/codec/SkCodec_wbmp.h b/src/codec/SkCodec_wbmp.h
index fece249728e72e1f2d0fcd0700981a84a116a8da..11b26bf4b9bc8fcc970edc382b8c46f886891e6c 100644
--- a/src/codec/SkCodec_wbmp.h
+++ b/src/codec/SkCodec_wbmp.h
@@ -9,17 +9,27 @@
#define SkCodec_wbmp_DEFINED
#include "SkCodec.h"
+#include "SkScanlineDecoder.h"
class SkWbmpCodec final : public SkCodec {
public:
static bool IsWbmp(SkStream*);
static SkCodec* NewFromStream(SkStream*);
+
+ typedef void (*ExpandProc)(uint8_t*, const uint8_t*, int);
scroggo 2015/07/27 14:16:45 I don't see why this needs to be public.
msarett 2015/07/27 23:42:30 This has been removed.
protected:
SkEncodedFormat onGetEncodedFormat() const override;
Result onGetPixels(const SkImageInfo&, void*, size_t,
const Options&, SkPMColor[], int*) override;
+ SkScanlineDecoder* onGetScanlineDecoder(const SkImageInfo& dstInfo,
+ const Options& options, SkPMColor ctable[], int* ctableCount);
scroggo 2015/07/27 14:16:45 override?
msarett 2015/07/27 23:42:30 Done.
private:
+ bool setExpandProc(SkColorType colorType, SkPMColor* ctable, int* ctableCount);
scroggo 2015/07/27 14:16:45 It is weird to me that this function is called "se
emmaleer 2015/07/27 14:41:37 Could you add a comment about what this function d
msarett 2015/07/27 23:42:30 This has been replaced by initializeSwizzler().
SkWbmpCodec(const SkImageInfo&, SkStream*);
+
+ ExpandProc fProc;
scroggo 2015/07/27 14:16:45 Does fProc need to be a member? It looks like it i
msarett 2015/07/27 23:42:30 I use this pattern to create the swizzler.
+
+ friend class SkWbmpScanlineDecoder;
typedef SkCodec INHERITED;
};
« no previous file with comments | « no previous file | src/codec/SkCodec_wbmp.cpp » ('j') | src/codec/SkCodec_wbmp.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698