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

Unified Diff: ui/gfx/color_space_win.cc

Issue 2140803002: Color: Don't duplicate ICC profile data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 5 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/color_space_win.cc
diff --git a/ui/gfx/color_space_win.cc b/ui/gfx/color_space_win.cc
index e9db49fc0d5731bd4b46828a84eb8cc230172585..9446c4eeab4cc9df8b065aa48ae0a3832ad8d1b8 100644
--- a/ui/gfx/color_space_win.cc
+++ b/ui/gfx/color_space_win.cc
@@ -59,9 +59,10 @@ bool ColorSpace::CachedProfilesNeedUpdate() {
void ColorSpace::UpdateCachedProfilesOnBackgroundThread() {
std::vector<char> icc_profile;
ReadBestMonitorICCProfile(&icc_profile);
+ gfx::ColorSpace color_space = FromICCProfile(icc_profile);
base::AutoLock lock(g_best_monitor_color_space_lock.Get());
- g_best_monitor_color_space.Get().icc_profile_ = icc_profile;
+ g_best_monitor_color_space.Get() = color_space;
g_has_initialized_best_monitor_color_space = true;
}
« ui/gfx/color_space.cc ('K') | « ui/gfx/color_space.cc ('k') | ui/gfx/color_space_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698