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

Issue 2950183002: color: Use ICCProfile from display::Display instead of FromBestMonitor (Closed)

Created:
3 years, 6 months ago by ccameron
Modified:
3 years, 6 months ago
Reviewers:
hubbe
CC:
chromium-reviews, jam, darin-cc_chromium.org, sadrul, kalyank
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

color: Use ICCProfile from display::Display instead of FromBestMonitor Remove aura::WindowTreeHost::GetICCProfileForCurrentDisplay, since this can be inferred from display::Screen::GetDisplayNearestWindow. This sets us up to notify the renderer and window of their new color space when moved across displays. Still rely on ICCProfile::FromBestMonitor for now, since removing that will require attention to detail on all platforms. R=hubbe TBR=skyostil (headless/) BUG=735613 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2950183002 Cr-Commit-Position: refs/heads/master@{#482056} Committed: https://chromium.googlesource.com/chromium/src/+/0269cae2f81d9920c4371e9fab0af5b569ddbe91

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix iOS bit, leave out Android for now #

Patch Set 3 : Move into platform specific code with TODOs #

Patch Set 4 : Push down to platform code #

Patch Set 5 : Move valididty checks to raster and aggregation #

Patch Set 6 : Fix compile #

Patch Set 7 : Remove some more ICCProfiles #

Patch Set 8 : Update expectations #

Total comments: 4

Patch Set 9 : Use forced color profile in display::Display ctor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -59 lines) Patch
M cc/surfaces/surface_aggregator.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M headless/lib/browser/headless_window_tree_host.h View 1 chunk +0 lines, -1 line 0 comments Download
M headless/lib/browser/headless_window_tree_host.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/mus/window_tree_host_mus.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/aura/window_tree_host.h View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download
M ui/aura/window_tree_host.cc View 1 2 3 4 5 6 4 chunks +5 lines, -13 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M ui/display/display.h View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M ui/display/display.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -0 lines 0 comments Download
M ui/display/mac/screen_mac.mm View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M ui/display/win/screen_win.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M ui/gfx/color_space.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M ui/gfx/color_space.cc View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M ui/gfx/icc_profile.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M ui/gfx/icc_profile.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_x11.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (43 generated)
ccameron
3 years, 6 months ago (2017-06-21 21:27:30 UTC) #3
hubbe
lgtm https://codereview.chromium.org/2950183002/diff/1/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/2950183002/diff/1/ui/aura/window_tree_host.cc#newcode307 ui/aura/window_tree_host.cc:307: compositor_->SetScaleAndSize(ui::GetScaleFactorForNativeView(window()), What does this change do?
3 years, 6 months ago (2017-06-21 21:49:14 UTC) #4
ccameron
Thanks! https://codereview.chromium.org/2950183002/diff/1/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/2950183002/diff/1/ui/aura/window_tree_host.cc#newcode307 ui/aura/window_tree_host.cc:307: compositor_->SetScaleAndSize(ui::GetScaleFactorForNativeView(window()), On 2017/06/21 21:49:13, hubbe wrote: > What ...
3 years, 6 months ago (2017-06-21 23:21:49 UTC) #5
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/2950183002/1
3 years, 6 months ago (2017-06-21 23:23:54 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/242894)
3 years, 6 months ago (2017-06-21 23:40:45 UTC) #10
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/2950183002/140001
3 years, 6 months ago (2017-06-23 06:17:46 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/295180)
3 years, 6 months ago (2017-06-23 06:36:39 UTC) #39
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/2950183002/140001
3 years, 6 months ago (2017-06-23 16:02:03 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/486710)
3 years, 6 months ago (2017-06-23 18:07:48 UTC) #43
hubbe
lgtm https://codereview.chromium.org/2950183002/diff/140001/cc/surfaces/surface_aggregator.cc File cc/surfaces/surface_aggregator.cc (right): https://codereview.chromium.org/2950183002/diff/140001/cc/surfaces/surface_aggregator.cc#newcode941 cc/surfaces/surface_aggregator.cc:941: blending_color_space_ = blending_color_space.IsValid() Can we just DCHECK() instead? ...
3 years, 6 months ago (2017-06-23 21:31:52 UTC) #46
ccameron
Good points -- both answers are "yes I want to but this patch is getting ...
3 years, 6 months ago (2017-06-23 22:44:10 UTC) #51
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/2950183002/160001
3 years, 6 months ago (2017-06-23 22:45:01 UTC) #53
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 22:49:18 UTC) #56
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/0269cae2f81d9920c4371e9fab0a...

Powered by Google App Engine
This is Rietveld 408576698