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

Issue 1129863003: Load ICC file for display color correction based on display product identifier (Closed)

Created:
5 years, 7 months ago by robert.bradford
Modified:
5 years, 7 months ago
Reviewers:
marcheu, Greg Levin, *oshima, *dcheng, *spang
CC:
chromium-reviews, darin-cc_chromium.org, jam, kalyank, oshima+watch_chromium.org, ozone-reviews_chromium.org, piman+watch_chromium.org, sadrul, stevenjb+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Load ICC file for display color correction based on display product identifier This change adds a new member to ui::DisplaySnapshot, 'product_id', which is populated from the EDID in DrmDisplaySnapshot when it is created. DisplaySnapshot::product_id() is then turned into a hexadecimal string and used to try and load an ICC file from a common path. BUG=471749 TEST=On a link_freon system blue-vcgt-test-color-profile.icc was copied into /usr/share/color/icc/30e400000000.icc and the system rebooted and the display was observed tinted blue. Committed: https://crrev.com/772b4792fd8c99925431f4639aaf92fcd6a9ce10 Cr-Commit-Position: refs/heads/master@{#329888}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address oshima@ feedback and rebase #

Total comments: 2

Patch Set 3 : Nuked extra {} #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -44 lines) Patch
M ash/content/display/display_color_manager_chromeos.h View 1 1 chunk +5 lines, -6 lines 0 comments Download
M ash/content/display/display_color_manager_chromeos.cc View 1 2 3 chunks +49 lines, -25 lines 0 comments Download
M chromeos/chromeos_paths.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/chromeos_paths.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/display/types/display_snapshot.h View 3 chunks +7 lines, -0 lines 0 comments Download
M ui/display/types/display_snapshot.cc View 1 chunk +3 lines, -1 line 0 comments Download
M ui/display/util/edid_parser.h View 1 chunk +5 lines, -4 lines 0 comments Download
M ui/display/util/edid_parser.cc View 2 chunks +11 lines, -1 line 0 comments Download
M ui/display/util/edid_parser_unittest.cc View 1 chunk +12 lines, -4 lines 0 comments Download
M ui/display/util/x11/edid_parser_x11.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/ozone/common/display_snapshot_proxy.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/common/display_util.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
M ui/ozone/common/gpu/ozone_gpu_message_params.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/common/gpu/ozone_gpu_message_params.cc View 1 chunk +3 lines, -1 line 0 comments Download
M ui/ozone/common/gpu/ozone_gpu_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/common/drm_util.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
robert.bradford
Hi folks, this CL is next step in the display color correction for ChromeOS devices. ...
5 years, 7 months ago (2015-05-06 15:36:16 UTC) #4
robert.bradford
Hi folks, this CL is next step in the display color correction for ChromeOS devices. ...
5 years, 7 months ago (2015-05-06 15:36:19 UTC) #5
dcheng
IPC changes lgtm, but one random question https://codereview.chromium.org/1129863003/diff/1/ui/display/types/display_snapshot.h File ui/display/types/display_snapshot.h (right): https://codereview.chromium.org/1129863003/diff/1/ui/display/types/display_snapshot.h#newcode59 ui/display/types/display_snapshot.h:59: static const ...
5 years, 7 months ago (2015-05-06 18:27:46 UTC) #6
spang
ui/ozone lgtm
5 years, 7 months ago (2015-05-07 18:04:56 UTC) #7
robert.bradford
Thanks spang@ and dcheng@. Still looking for feedback from marcheu@ and oshima@. On 2015/05/06 18:27:46, ...
5 years, 7 months ago (2015-05-12 15:48:59 UTC) #8
oshima
https://codereview.chromium.org/1129863003/diff/1/ash/content/display/display_color_manager_chromeos.cc File ash/content/display/display_color_manager_chromeos.cc (right): https://codereview.chromium.org/1129863003/diff/1/ash/content/display/display_color_manager_chromeos.cc#newcode14 ash/content/display/display_color_manager_chromeos.cc:14: #include "base/path_service.h" remove dup. https://codereview.chromium.org/1129863003/diff/1/ash/content/display/display_color_manager_chromeos.cc#newcode95 ash/content/display/display_color_manager_chromeos.cc:95: if (calibration_map_[state->display_id()]) { ...
5 years, 7 months ago (2015-05-14 00:06:12 UTC) #9
robert.bradford
Hi oshima@ thanks for the review, we now cache based on product id. I alsi ...
5 years, 7 months ago (2015-05-14 17:55:38 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129863003/20001
5 years, 7 months ago (2015-05-14 17:57:25 UTC) #13
oshima
yep, looks better. lgtm with one nit https://codereview.chromium.org/1129863003/diff/20001/ash/content/display/display_color_manager_chromeos.cc File ash/content/display/display_color_manager_chromeos.cc (right): https://codereview.chromium.org/1129863003/diff/20001/ash/content/display/display_color_manager_chromeos.cc#newcode109 ash/content/display/display_color_manager_chromeos.cc:109: } nit: ...
5 years, 7 months ago (2015-05-14 18:11:44 UTC) #14
robert.bradford
Thanks oshima! https://codereview.chromium.org/1129863003/diff/20001/ash/content/display/display_color_manager_chromeos.cc File ash/content/display/display_color_manager_chromeos.cc (right): https://codereview.chromium.org/1129863003/diff/20001/ash/content/display/display_color_manager_chromeos.cc#newcode109 ash/content/display/display_color_manager_chromeos.cc:109: } On 2015/05/14 18:11:43, oshima wrote: > ...
5 years, 7 months ago (2015-05-14 18:17:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129863003/40001
5 years, 7 months ago (2015-05-14 18:17:52 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-14 18:58:36 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 18:59:29 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/772b4792fd8c99925431f4639aaf92fcd6a9ce10
Cr-Commit-Position: refs/heads/master@{#329888}

Powered by Google App Engine
This is Rietveld 408576698