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

Unified Diff: dm/DM.cpp

Issue 999173010: Test scanline decoding in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@scanlineDecoder3
Patch Set: Fix order of output Created 5 years, 9 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') | no next file with comments »
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 98f0d947a00bee2079eb7cb8dcb8d2b7b67cfe83..86a75983e3f989f31e65838905a4bc438e9bda67 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -25,7 +25,7 @@
#include "Test.h"
#include "Timer.h"
-DEFINE_string(src, "tests gm skp image subset codec", "Source types to test.");
+DEFINE_string(src, "tests gm skp image subset codec scanline", "Source types to test.");
DEFINE_bool(nameByHash, false,
"If true, write to FLAGS_writePath[0]/<hash>.png instead of "
"to FLAGS_writePath[0]/<config>/<sourceType>/<name>.png");
@@ -187,7 +187,8 @@ static void gather_srcs() {
push_src("image", new ImageSrc(path)); // Decode entire image.
push_src("subset", new ImageSrc(path, 2)); // Decode into 2 x 2 subsets
if (codec_supported(exts[j])) {
- push_src("codec", new CodecSrc(path)); // Decode with SkCodec.
+ push_src("codec", new CodecSrc(path, CodecSrc::kNormal_Mode));
+ push_src("scanline", new CodecSrc(path, CodecSrc::kScanline_Mode));
}
}
}
@@ -195,7 +196,8 @@ static void gather_srcs() {
// assume that FLAGS_images[i] is a valid image if it is a file.
push_src("image", new ImageSrc(flag)); // Decode entire image.
push_src("subset", new ImageSrc(flag, 2)); // Decode into 2 x 2 subsets
- push_src("codec", new CodecSrc(flag)); // Decode with SkCodec.
+ push_src("codec", new CodecSrc(flag, CodecSrc::kNormal_Mode));
+ push_src("scanline", new CodecSrc(flag, CodecSrc::kScanline_Mode));
}
}
}
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698