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

Unified Diff: cc/surfaces/display.cc

Issue 2102203003: Color: Plumb color profile from ui::Compositor to cc::DirectRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of s/ColorProfile/ColorSpace/ Created 4 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
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index c24997bfecdd12da89421b106b970ef385ed4c45..e4ad249b3f0f76a8b34993a821d85e2b2dc58bc3 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -128,6 +128,10 @@ void Display::Resize(const gfx::Size& size) {
scheduler_->DisplayResized();
}
+void Display::SetColorSpace(const gfx::ColorSpace& color_space) {
+ device_color_space_ = color_space;
+}
+
void Display::SetExternalClip(const gfx::Rect& clip) {
external_clip_ = clip;
}
@@ -291,7 +295,8 @@ bool Display::DrawAndSwap() {
renderer_->DecideRenderPassAllocationsForFrame(
frame_data->render_pass_list);
renderer_->DrawFrame(&frame_data->render_pass_list, device_scale_factor_,
- device_viewport_rect, device_clip_rect,
+ device_color_space_, device_viewport_rect,
+ device_clip_rect,
disable_picture_quad_image_filtering);
} else {
TRACE_EVENT_INSTANT0("cc", "Draw skipped.", TRACE_EVENT_SCOPE_THREAD);
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698