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

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: Fix ozone build 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
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 3709cabb79530490977055028e80983d7c47b854..0f0b91bbf21d3e382b68f82fb644cf6b03afd450 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::SetColorProfile(const gfx::ColorProfile& color_profile) {
+ device_color_profile_ = color_profile;
+}
+
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_profile_, device_viewport_rect,
+ device_clip_rect,
disable_picture_quad_image_filtering);
} else {
TRACE_EVENT_INSTANT0("cc", "Draw skipped.", TRACE_EVENT_SCOPE_THREAD);

Powered by Google App Engine
This is Rietveld 408576698