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

Unified Diff: dm/DM.cpp

Issue 1933753002: Add ColorCodecSrc for testing/comparison on color corrected decodes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments Created 4 years, 8 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 | « bench/nanobench.cpp ('k') | 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 fe1432bf32f16332750f2d32c358f19d10ab740b..9dbd43adda05367aa7ec1fccbda964de73593d59 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -779,7 +779,7 @@ static bool gather_srcs() {
}
SkTArray<SkString> images;
- if (!CollectImages(&images)) {
+ if (!CollectImages(FLAGS_images, &images)) {
return false;
}
@@ -795,6 +795,16 @@ static bool gather_srcs() {
}
}
+ SkTArray<SkString> colorImages;
+ if (!CollectImages(FLAGS_colorImages, &colorImages)) {
+ return false;
+ }
+
+ for (auto colorImage : colorImages) {
+ ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBaseline_Mode);
+ push_src("image", "color_codec_baseline", src);
+ }
+
return true;
}
« no previous file with comments | « bench/nanobench.cpp ('k') | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698