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

Unified Diff: src/codec/SkSwizzler.h

Issue 1254483004: Scanline decoding for wbmp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More minor fixes Created 5 years, 4 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
Index: src/codec/SkSwizzler.h
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
index 76ca74877a391c9670ef8f71d68a8ed8ad131e52..2fab7f66b6ea15184c3618304a012a9b4bf4df1c 100644
--- a/src/codec/SkSwizzler.h
+++ b/src/codec/SkSwizzler.h
@@ -19,6 +19,7 @@ public:
*/
enum SrcConfig {
kUnknown, // Invalid type.
+ kBit, // A single bit to distinguish between white and black
kGray,
kIndex1,
kIndex2,
@@ -76,6 +77,7 @@ public:
*/
static int BitsPerPixel(SrcConfig sc) {
switch (sc) {
+ case kBit:
case kIndex1:
return 1;
case kIndex2:

Powered by Google App Engine
This is Rietveld 408576698