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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

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
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index d936b5f23947edc8e2ff3233a9102694c7276b80..d38f670a62d39ade6c8837d634094d8b956bf000 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -3354,8 +3354,8 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
color_space = base::mac::GetSystemColorSpace();
gfx::ICCProfile icc_profile =
gfx::ICCProfile::FromCGColorSpace(color_space);
- renderWidgetHostView_->browser_compositor_->SetDisplayColorProfile(
- icc_profile);
+ renderWidgetHostView_->browser_compositor_->SetDisplayColorSpace(
+ icc_profile.GetColorSpace());
}
}
« no previous file with comments | « content/browser/renderer_host/browser_compositor_view_mac.mm ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698