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

Unified Diff: ui/display/win/screen_win.cc

Issue 2950183002: color: Use ICCProfile from display::Display instead of FromBestMonitor (Closed)
Patch Set: Use forced color profile in display::Display ctor Created 3 years, 6 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/display/mac/screen_mac.mm ('k') | ui/gfx/color_space.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/win/screen_win.cc
diff --git a/ui/display/win/screen_win.cc b/ui/display/win/screen_win.cc
index 8b436cc26f9f47b78d034ef942ea04c7745a969c..f585989bb0b70cff6c1d3b3ac2d2cbeed66da1bf 100644
--- a/ui/display/win/screen_win.cc
+++ b/ui/display/win/screen_win.cc
@@ -25,6 +25,7 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/vector2d.h"
+#include "ui/gfx/icc_profile.h"
namespace display {
namespace win {
@@ -89,6 +90,11 @@ Display CreateDisplayFromDisplayInfo(const DisplayInfo& display_info) {
display.set_bounds(gfx::ScaleToEnclosingRect(display_info.screen_rect(),
1.0f / scale_factor));
display.set_rotation(display_info.rotation());
+
+ // TODO(ccameron): Populate this based on this specific display.
+ // http://crbug.com/735613
+ display.set_color_space(gfx::ICCProfile::FromBestMonitor().GetColorSpace());
+
return display;
}
« no previous file with comments | « ui/display/mac/screen_mac.mm ('k') | ui/gfx/color_space.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698