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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 2496913003: Display linear-srgb color managed canvas (Closed)
Patch Set: Setting the layout test to fail on Mac. Created 4 years, 1 month 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: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 33eb38197875c695da52cb90e2df86b976af3a48..fc073a0ab243235feb6088ae977eb40e44632bd4 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -665,6 +665,10 @@ void GetScreenInfoForWindow(ScreenInfo* results,
results->depth_per_component = 8;
results->is_monochrome = false;
results->device_scale_factor = display.device_scale_factor();
+ results->icc_profile = gfx::ICCProfile::FromBestMonitor();
+ if (results->icc_profile == gfx::ICCProfile())
+ results->icc_profile =
+ gfx::ICCProfile::FromColorSpace(gfx::ColorSpace::CreateSRGB());
sadrul 2016/11/17 21:42:43 {}?
zakerinasab 2016/11/18 14:38:27 Done.
// The Display rotation and the ScreenInfo orientation are not the same
// angle. The former is the physical display rotation while the later is the

Powered by Google App Engine
This is Rietveld 408576698