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

Unified Diff: ui/gfx/icc_profile_win.cc

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_win.cc
diff --git a/ui/gfx/icc_profile_win.cc b/ui/gfx/icc_profile_win.cc
index c4ac9d96e66bac38ac1240f006b712fdd0185c83..1b29f3c8d6b26a4e365e73cc909dad4aaf8267fa 100644
--- a/ui/gfx/icc_profile_win.cc
+++ b/ui/gfx/icc_profile_win.cc
@@ -43,6 +43,9 @@ bool g_has_initialized_best_monitor_color_space = false;
// static
ICCProfile ICCProfile::FromBestMonitor() {
+ if (HasForcedProfile())
+ return GetForcedProfile();
+
base::AutoLock lock(g_best_monitor_color_space_lock.Get());
return g_best_monitor_color_space.Get();
}

Powered by Google App Engine
This is Rietveld 408576698