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

Unified Diff: dm/DM.cpp

Issue 1134113006: dm changes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: dm subset scanline decoder changes Created 5 years, 7 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 | dm/DMSrcSink.h » ('j') | dm/DMSrcSink.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 139e9eb82396d35e09c69bfa979a321093b694fd..1252d4f1f2dd9fc2bf31353a24184e7bb1c72a75 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -207,6 +207,8 @@ static void push_codec_srcs(Path path) {
CodecSrc::kGrayscale_Always_DstColorType));
push_src("image", "scanline_kGray8", new CodecSrc(path, CodecSrc::kScanline_Mode,
CodecSrc::kGrayscale_Always_DstColorType));
+ push_src("image", "scanline_kGray8", new CodecSrc(path, CodecSrc::kSubset_Mode,
msarett 2015/05/19 14:01:13 "subset_kGray8"
+ CodecSrc::kGrayscale_Always_DstColorType));
// Intentional fall through
// FIXME: Is this a long term solution for testing wbmps decodes to kIndex8?
// Further discussion on this topic is at skbug.com/3683
@@ -215,6 +217,8 @@ static void push_codec_srcs(Path path) {
CodecSrc::kIndex8_Always_DstColorType));
push_src("image", "scanline_kIndex8", new CodecSrc(path, CodecSrc::kScanline_Mode,
CodecSrc::kIndex8_Always_DstColorType));
+ push_src("image", "scanline_kIndex8", new CodecSrc(path, CodecSrc::kSubset_Mode,
msarett 2015/05/19 14:01:13 "subset_kIndex8"
+ CodecSrc::kIndex8_Always_DstColorType));
break;
default:
// Do nothing
@@ -226,6 +230,8 @@ static void push_codec_srcs(Path path) {
CodecSrc::kGetFromCanvas_DstColorType));
push_src("image", "scanline", new CodecSrc(path, CodecSrc::kScanline_Mode,
CodecSrc::kGetFromCanvas_DstColorType));
+ push_src("image", "subset", new CodecSrc(path, CodecSrc::kSubset_Mode,
msarett 2015/05/19 14:01:13 I think we use the same two tags (image, subset) f
scroggo 2015/05/19 15:21:41 Agreed on all counts. So the first one should be "
emmaleer 2015/05/21 17:51:13 Acknowledged.
+ CodecSrc::kGetFromCanvas_DstColorType));
}
static bool codec_supported(const char* ext) {
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | dm/DMSrcSink.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698