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

Issue 2325773003: cc: Plumb the monitor color profile to renderer for rasterization (Closed)

Created:
4 years, 3 months ago by ccameron
Modified:
4 years, 3 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, hubbe, jam, mlamouri+watch-content_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Plumb the monitor color profile to renderer for rasterization This adds the output device color profile to display::Display, and populates it correctly on Mac. We will want to do this for all platforms. The color profile is then plumbed through the same IPCs that take the device scale factor, to get to the renderer process' RenderWidgetCompositor. Note that we are sending the full ICCProfile this far. This is important, because the renderer process will be setting the ICCProfile of its rasterized IOSurfaces, and there is a power impact of even slight differences between the monitor profile and the IOSurface profile. The ICCProfile is then sent as a gfx::ColorProfile (which internally references the ICCProfile, for the above purpose) to the RenderWidgetCompositor, from where it will be pushed to cc. In the next step, we will (under a flag) specify the color space for rasterization. BUG=44872 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/f1fef7489c29deeee2a29c41ce4851e9ad1bd67b Committed: https://crrev.com/f408cabe76348e2e5f207a633178fdf150e38aa4 Cr-Original-Commit-Position: refs/heads/master@{#418422} Cr-Commit-Position: refs/heads/master@{#418591}

Patch Set 1 #

Patch Set 2 : Make public_deps instead of deps #

Total comments: 6

Patch Set 3 : More cleanup #

Patch Set 4 : Remove comment #

Patch Set 5 : Rebase #

Total comments: 1

Patch Set 6 : Remove cc part #

Patch Set 7 : Unrevert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -10 lines) Patch
M content/browser/web_contents/web_contents_view_android.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mac.mm View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/screen_info.h View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M content/public/common/screen_info.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M ui/display/BUILD.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/display/android/screen_android.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/display.h View 1 2 3 chunks +19 lines, -0 lines 0 comments Download
M ui/display/display.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/display/mac/screen_mac.mm View 1 2 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (32 generated)
ccameron
ptal: enne: cc (and ui) clamy: content OWNER dcheng: view_messages OWNER https://codereview.chromium.org/2325773003/diff/20001/content/common/view_messages.h File content/common/view_messages.h (right): ...
4 years, 3 months ago (2016-09-08 22:05:03 UTC) #6
enne (OOO)
cc lgtm I'm not a ui owner.
4 years, 3 months ago (2016-09-09 00:31:05 UTC) #7
clamy
Thanks! The code in the cross-platform part of content/ looks good, but I'm not familiar ...
4 years, 3 months ago (2016-09-09 15:23:25 UTC) #8
ccameron
Sure -- adding ellyjones for the .mm changes in content/
4 years, 3 months ago (2016-09-09 16:13:21 UTC) #10
enne (OOO)
https://codereview.chromium.org/2325773003/diff/20001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2325773003/diff/20001/cc/trees/layer_tree_impl.cc#newcode849 cc/trees/layer_tree_impl.cc:849: // set_needs_update_draw_properties(); ?
4 years, 3 months ago (2016-09-09 17:44:47 UTC) #11
ccameron
https://codereview.chromium.org/2325773003/diff/20001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2325773003/diff/20001/cc/trees/layer_tree_impl.cc#newcode849 cc/trees/layer_tree_impl.cc:849: // set_needs_update_draw_properties(); On 2016/09/09 17:44:47, enne wrote: > ? ...
4 years, 3 months ago (2016-09-09 17:48:18 UTC) #12
dcheng
ipc lgtm, let me know if I misunderstood something here though. https://codereview.chromium.org/2325773003/diff/20001/content/common/view_messages.h File content/common/view_messages.h (right): ...
4 years, 3 months ago (2016-09-09 19:32:19 UTC) #13
ccameron
https://codereview.chromium.org/2325773003/diff/80001/ui/display/mac/screen_mac.mm File ui/display/mac/screen_mac.mm (right): https://codereview.chromium.org/2325773003/diff/80001/ui/display/mac/screen_mac.mm#newcode83 ui/display/mac/screen_mac.mm:83: display.set_is_monochrome(CGDisplayUsesForceToGray()); note that this a change from the previous ...
4 years, 3 months ago (2016-09-12 20:13:19 UTC) #23
no sievers
content lgtm
4 years, 3 months ago (2016-09-12 22:05:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2325773003/80001
4 years, 3 months ago (2016-09-12 22:06:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2325773003/100001
4 years, 3 months ago (2016-09-13 22:44:16 UTC) #32
ccameron
> CQ is trying da patch. FYI, I dropped the cc:: part of the patch, ...
4 years, 3 months ago (2016-09-13 22:44:29 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-14 00:04:36 UTC) #35
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/f1fef7489c29deeee2a29c41ce4851e9ad1bd67b Cr-Commit-Position: refs/heads/master@{#418422}
4 years, 3 months ago (2016-09-14 00:06:36 UTC) #37
Yuta Kitamura
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2336113003/ by yutak@chromium.org. ...
4 years, 3 months ago (2016-09-14 05:03:59 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2325773003/120001
4 years, 3 months ago (2016-09-14 16:48:38 UTC) #46
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-14 16:55:03 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 16:58:40 UTC) #50
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f408cabe76348e2e5f207a633178fdf150e38aa4
Cr-Commit-Position: refs/heads/master@{#418591}

Powered by Google App Engine
This is Rietveld 408576698