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

Issue 2742613002: color: Always use parametric color spaces for raster (Closed)

Created:
3 years, 9 months ago by ccameron
Modified:
3 years, 9 months ago
Reviewers:
hubbe
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, sadrul, yusukes+watch_chromium.org, Ian Vollick, shuchen+watch_chromium.org, jam, piman+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, mac-reviews_chromium.org, kalyank, danakj+watch_chromium.org, James Su, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

color: Always use parametric color spaces for raster Rasterization must always be done to a parametric color space. Display may be done to any color space. Make ICCProfile::GetParametricColorSpace always return a parametric color space (approximated if need be), and pass this to functions specifying the space for rasterization. Make ICCProfile::GetColorSpace return a space that references the ICCProfile directly, and use the profile for color transforms if the parametric version is not accurate. Pass the ICCProfile to ui::Compositor, so that it can send GetColorSpace to the GLRenderer and GetParametricColorSpace to the LayerTreeHost. R=hubbe TBR=esprehn BUG=697675 Review-Url: https://codereview.chromium.org/2742613002 Cr-Commit-Position: refs/heads/master@{#456849} Committed: https://chromium.googlesource.com/chromium/src/+/24c87c3f418983673089663bb69045451d54f52d

Patch Set 1 #

Patch Set 2 : Add more tests #

Patch Set 3 : More comment cleanup #

Total comments: 11

Patch Set 4 : More comments #

Total comments: 2

Patch Set 5 : Incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+588 lines, -84 lines) Patch
M content/browser/renderer_host/browser_compositor_view_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_widget.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/window_tree_host.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/compositor/compositor.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M ui/gfx/color_space.h View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M ui/gfx/color_space.cc View 1 2 3 4 chunks +8 lines, -12 lines 0 comments Download
M ui/gfx/color_space_win.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gfx/color_transform.cc View 1 2 3 4 2 chunks +15 lines, -2 lines 0 comments Download
M ui/gfx/icc_profile.h View 1 4 chunks +16 lines, -10 lines 0 comments Download
M ui/gfx/icc_profile.cc View 1 2 3 4 7 chunks +68 lines, -42 lines 0 comments Download
M ui/gfx/icc_profile_unittest.cc View 1 1 chunk +55 lines, -0 lines 0 comments Download
M ui/gfx/skia_color_space_util.h View 2 chunks +9 lines, -0 lines 0 comments Download
M ui/gfx/skia_color_space_util.cc View 3 chunks +41 lines, -2 lines 0 comments Download
M ui/gfx/test/icc_profiles.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gfx/test/icc_profiles.cc View 1 2 chunks +346 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (15 generated)
ccameron
This keeps the "color space for display which can always use a LUT" separate from ...
3 years, 9 months ago (2017-03-09 07:13:40 UTC) #5
ccameron
also ping
3 years, 9 months ago (2017-03-13 12:50:21 UTC) #6
hubbe
https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_space.h#newcode45 ui/gfx/color_space.h:45: ICC_PROFILE_REQUIRED, Why? https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_space.h#newcode78 ui/gfx/color_space.h:78: ICC_PROFILE_REQUIRED, Why? https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_transform.cc File ui/gfx/color_transform.cc ...
3 years, 9 months ago (2017-03-13 17:59:09 UTC) #7
ccameron
https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_space.h#newcode45 ui/gfx/color_space.h:45: ICC_PROFILE_REQUIRED, On 2017/03/13 17:59:09, hubbe wrote: > Why? In ...
3 years, 9 months ago (2017-03-13 20:34:18 UTC) #8
hubbe
https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_space.h#newcode45 ui/gfx/color_space.h:45: ICC_PROFILE_REQUIRED, On 2017/03/13 20:34:18, ccameron wrote: > On 2017/03/13 ...
3 years, 9 months ago (2017-03-13 20:38:56 UTC) #9
ccameron
https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_space.h#newcode45 ui/gfx/color_space.h:45: ICC_PROFILE_REQUIRED, On 2017/03/13 20:38:56, hubbe wrote: > On 2017/03/13 ...
3 years, 9 months ago (2017-03-14 10:19:54 UTC) #10
hubbe
lgtm https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_transform.cc File ui/gfx/color_transform.cc (right): https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_transform.cc#newcode799 ui/gfx/color_transform.cc:799: // We needed the original ICC profile to ...
3 years, 9 months ago (2017-03-14 18:26:46 UTC) #11
ccameron
Thanks! https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_transform.cc File ui/gfx/color_transform.cc (right): https://codereview.chromium.org/2742613002/diff/40001/ui/gfx/color_transform.cc#newcode799 ui/gfx/color_transform.cc:799: // We needed the original ICC profile to ...
3 years, 9 months ago (2017-03-14 21:41:03 UTC) #18
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/2742613002/80001
3 years, 9 months ago (2017-03-14 21:43:12 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 21:51:41 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/24c87c3f418983673089663bb690...

Powered by Google App Engine
This is Rietveld 408576698