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

Unified Diff: src/codec/SkSwizzler.h

Issue 1582083005: Clean up unused or overly complex modes in SkSwizzler (Closed) Base URL: https://skia.googlesource.com/skia.git@neon-unpremul
Patch Set: Created 4 years, 11 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 e75ab43cfe0c90c5daf0f313443d0624bec0b859..cca4844deae84b23aa1e313b66789d421167d420 100644
--- a/src/codec/SkSwizzler.h
+++ b/src/codec/SkSwizzler.h
@@ -28,12 +28,15 @@ public:
kIndex,
kRGB,
kBGR,
- kRGBX,
kBGRX,
msarett 2016/01/14 20:52:24 kBGRX now really means BGR(anything) instead of BG
scroggo 2016/01/14 21:28:18 Can you add a comment stating that?
msarett 2016/01/14 22:25:20 Done.
kRGBA,
kBGRA,
- kRGB_565,
kCMYK,
+ // These modes are used exclusively for sampling and subsetting.
scroggo 2016/01/14 21:28:18 Looks like the number means the number of bytes. T
msarett 2016/01/14 22:25:20 Happy to use the number of bits for consistency.
+ // The pixels themselves do not need to be modified.
+ kNOOP1,
scroggo 2016/01/14 21:28:18 Why not kNoOp1 etc?
msarett 2016/01/14 22:25:20 sgtm
+ kNOOP2,
+ kNOOP4,
};
/*
@@ -52,17 +55,18 @@ public:
return 4;
case kGray:
case kIndex:
+ case kNOOP1:
return 8;
- case kRGB_565:
+ case kNOOP2:
return 16;
case kRGB:
case kBGR:
return 24;
- case kRGBX:
case kRGBA:
case kBGRX:
case kBGRA:
case kCMYK:
+ case kNOOP4:
return 32;
default:
SkASSERT(false);
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | src/codec/SkSwizzler.cpp » ('j') | src/codec/SkSwizzler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698