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

Unified Diff: ui/gfx/icc_profile_mac.mm

Issue 2877093002: color: Add command line flag to force output color space (Closed)
Patch Set: Review feedback Created 3 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
Index: ui/gfx/icc_profile_mac.mm
diff --git a/ui/gfx/icc_profile_mac.mm b/ui/gfx/icc_profile_mac.mm
index ec51749be477c65b2c019e58d70401ab87f73940..1aa768cc699f79ef837737d921c31454e0052dbb 100644
--- a/ui/gfx/icc_profile_mac.mm
+++ b/ui/gfx/icc_profile_mac.mm
@@ -16,6 +16,9 @@
// static
ICCProfile ICCProfile::FromCGColorSpace(CGColorSpaceRef cg_color_space) {
+ if (HasForcedProfile())
+ return GetForcedProfile();
+
base::ScopedCFTypeRef<CFDataRef> cf_icc_profile(
CGColorSpaceCopyICCProfile(cg_color_space));
if (!cf_icc_profile)

Powered by Google App Engine
This is Rietveld 408576698