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

Unified Diff: ui/gfx/icc_profile_win.cc

Issue 2203213002: ICC profile color translations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color_correction7
Patch Set: win compile fix Created 4 years, 4 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_mac.mm ('k') | no next file » | 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 826ecde80e3089b71520c70dd02636b6f1d40ab7..7e1b0ca0f0aface2a54e3754eb6169c6ad453f47 100644
--- a/ui/gfx/icc_profile_win.cc
+++ b/ui/gfx/icc_profile_win.cc
@@ -57,7 +57,8 @@ bool ICCProfile::CachedProfilesNeedUpdate() {
void ICCProfile::UpdateCachedProfilesOnBackgroundThread() {
std::vector<char> icc_profile;
ReadBestMonitorICCProfile(&icc_profile);
- gfx::ICCProfile color_space = FromData(icc_profile);
+ gfx::ICCProfile color_space = FromData(
+ icc_profile.data(), icc_profile.size());
base::AutoLock lock(g_best_monitor_color_space_lock.Get());
g_best_monitor_color_space.Get() = color_space;
« no previous file with comments | « ui/gfx/icc_profile_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698