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

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

Issue 2496913003: Display linear-srgb color managed canvas (Closed)
Patch Set: Removing Failure lines from TestExpectations 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
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f514c1322bc57a89f59917286bfd47b5302a0270 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -665,6 +665,11 @@ 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());
+ }
// The Display rotation and the ScreenInfo orientation are not the same
// angle. The former is the physical display rotation while the later is the
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698