aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkSwizzler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec/SkSwizzler.h')
-rw-r--r--src/codec/SkSwizzler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
index 76ca74877a..2fab7f66b6 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: