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

Unified Diff: ui/gfx/icc_profile_win.cc

Issue 2873203003: color: Add --force-color-profile command line flag (Closed)
Patch Set: 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
« no previous file with comments | « ui/gfx/icc_profile_unittest.cc ('k') | ui/gfx/icc_profile_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « ui/gfx/icc_profile_unittest.cc ('k') | ui/gfx/icc_profile_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698