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

Unified Diff: ui/compositor/compositor.cc

Issue 2336853002: cc: Plumb device color space through to rasterization (Closed)
Patch Set: Use suggested approach 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: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index ec6f77b5409c17e69f5cb1f68987650d2ef0c15c..0a6a0f1fa7cb99e7d52ec09eac7aa1d8aaedbc3d 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -339,6 +339,7 @@ void Compositor::SetScaleAndSize(float scale, const gfx::Size& size_in_pixel) {
}
void Compositor::SetDisplayColorSpace(const gfx::ColorSpace& color_space) {
+ host_->GetLayerTree()->SetDeviceColorSpace(color_space);
context_factory_->SetDisplayColorSpace(this, color_space);
}
« cc/trees/layer_tree_impl.cc ('K') | « content/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698