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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2307083003: Send the ICC profile to the compositor under aura. (Closed)
Patch Set: Created 4 years, 3 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_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index c681785cb705010ce713840ddd9c68ad69bc198e..bcb615fd2dc0a44ebae8b6b7d8f1f68eeec56179 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -2672,6 +2672,11 @@ void RenderWidgetHostViewAura::AddedToRootWindow() {
UpdateLegacyWin();
#endif
+ gfx::ICCProfile icc_profile = gfx::ICCProfile::FromBestMonitor();
+ if (!(icc_profile == gfx::ICCProfile())) {
ccameron 2016/09/02 21:10:32 We don't need to check icc_profile == gfx::ICCProf
hubbe 2016/09/02 21:35:49 Done.
+ window_->GetHost()->compositor()->SetDisplayColorSpace(
+ icc_profile.GetColorSpace());
+ }
delegated_frame_host_->SetCompositor(window_->GetHost()->compositor());
}

Powered by Google App Engine
This is Rietveld 408576698