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

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

Issue 2161293002: Color: Separate ICCProfile and ColorSpace structures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporate review feedback Created 4 years, 5 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 | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 139d3b6ce10d89662b90ee90c1d8217a640b3699..874a54fda82c485bde1e764902be3b3f6c175333 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -3059,8 +3059,10 @@ - (void)viewDidMoveToWindow {
- (void)viewDidChangeBackingProperties {
NSScreen* screen = [[self window] screen];
if (screen) {
+ gfx::ICCProfile icc_profile =
+ gfx::ICCProfile::FromCGColorSpace([[screen colorSpace] CGColorSpace]);
renderWidgetHostView_->browser_compositor_->SetDisplayColorSpace(
- gfx::ColorSpace::FromCGColorSpace([[screen colorSpace] CGColorSpace]));
+ icc_profile.GetColorSpace());
}
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698