aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkSwizzler.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-01-19 10:40:12 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-19 10:40:12 -0800
commitbda86098ab2784968d0a1222dd1f4c18d18fe050 (patch)
tree7e81abd15acc0186a95ec3454f85dc663c36a996 /src/codec/SkSwizzler.h
parent94ec356ed4d8ed0cef39a43b221bee9394f74a8e (diff)
Clean up unused or overly complex modes in SkSwizzler
Diffstat (limited to 'src/codec/SkSwizzler.h')
-rw-r--r--src/codec/SkSwizzler.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
index e75ab43cfe..edc7dcbe2a 100644
--- a/src/codec/SkSwizzler.h
+++ b/src/codec/SkSwizzler.h
@@ -20,7 +20,7 @@ public:
*/
enum SrcConfig {
kUnknown, // Invalid type.
- kBit, // A single bit to distinguish between white and black
+ kBit, // A single bit to distinguish between white and black.
kGray,
kIndex1,
kIndex2,
@@ -28,12 +28,13 @@ public:
kIndex,
kRGB,
kBGR,
- kRGBX,
- kBGRX,
+ kBGRX, // The alpha channel can be anything, but the image is opaque.
kRGBA,
kBGRA,
- kRGB_565,
kCMYK,
+ kNoOp8, // kNoOp modes are used exclusively for sampling, subsetting, and
+ kNoOp16, // copying. The pixels themselves do not need to be modified.
+ kNoOp32,
};
/*
@@ -52,17 +53,18 @@ public:
return 4;
case kGray:
case kIndex:
+ case kNoOp8:
return 8;
- case kRGB_565:
+ case kNoOp16:
return 16;
case kRGB:
case kBGR:
return 24;
- case kRGBX:
case kRGBA:
case kBGRX:
case kBGRA:
case kCMYK:
+ case kNoOp32:
return 32;
default:
SkASSERT(false);