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

Unified Diff: dm/DM.cpp

Issue 1952063002: Create SkColorSpaceXform to handle color conversions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 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') | 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 8ee2ea739f9dfc2da371dedb530f647c36c8acfe..56c3b66be00ec6aa29a81dedd6082d44d4acf40a 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -724,18 +724,17 @@ static bool gather_srcs() {
return false;
}
- // Load the dstSpace. This particular dst is fairly similar to Adobe RGB.
- SkAutoTUnref<SkData> data(SkData::NewFromFileName(
- GetResourcePath("monitor_profiles/HP_ZR30w.icc").c_str()));
- sk_sp<SkColorSpace> dstSpace = SkColorSpace::NewICC(data->data(), data->size());
- SkASSERT(dstSpace);
-
for (auto colorImage : colorImages) {
- ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBaseline_Mode, nullptr);
+ ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBaseline_Mode);
push_src("image", "color_codec_baseline", src);
- src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_HPZR30w_Mode, dstSpace);
+ src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_HPZR30w_Mode);
push_src("image", "color_codec_HPZR30w", src);
+
+#if !defined(GOOGLE3)
+ src = new ColorCodecSrc(colorImage, ColorCodecSrc::kQCMS_HPZR30w_Mode);
+ push_src("image", "color_codec_QCMS_HPZR30w", src);
+#endif
}
return true;
« 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