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

Unified Diff: ui/aura/window_tree_host.cc

Issue 2307083003: Send the ICC profile to the compositor under aura. (Closed)
Patch Set: move to window_tree_host 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
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host.cc
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
index 5164fe65a58cac4cbe9a61f1ce84d2dd04f955c4..c1f97ff1cf7481f2d73b40211decfffa2d615a76 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -26,6 +26,7 @@
#include "ui/gfx/geometry/point_conversions.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/size_conversions.h"
+#include "ui/gfx/icc_profile.h"
namespace aura {
@@ -68,6 +69,8 @@ void WindowTreeHost::InitCompositor() {
compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()),
GetBounds().size());
compositor_->SetRootLayer(window()->layer());
+ compositor_->SetDisplayColorSpace(
+ gfx::ICCProfile::FromBestMonitor().GetColorSpace());
sky 2016/09/07 20:15:58 What is FromBestMonitor? Shouldn't you pick the pr
hubbe1 2016/09/07 20:29:25 Yes we should, but we don't have the ability yet.
sky 2016/09/07 21:41:47 Yes please.
}
void WindowTreeHost::AddObserver(WindowTreeHostObserver* observer) {
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698