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

Issue 2652503002: Use SkICC in gfx::ICCProfile and gfx::ColorSpace (Closed)

Created:
3 years, 11 months ago by ccameron
Modified:
3 years, 10 months ago
Reviewers:
msarett1, hubbe, dcheng
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), hubbe
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use SkICC in gfx::ICCProfile and gfx::ColorSpace This finally reaches the original goal of having gfx::ColorSpace be a (potentially lossily) compressed version of gfx::ICCProfile. The ICC profile's primaries and transfer funtion are extracted and stored in the gfx::ColorSpace, and are used in the event that the underlying ICC profile is purged from the cache. Update ICCProfile's IPC methods to ensure that the profile is touched in the cache and that its SkColorSpace is computed when it is received via IPC. BUG=634102 Review-Url: https://codereview.chromium.org/2652503002 Cr-Commit-Position: refs/heads/master@{#446923} Committed: https://chromium.googlesource.com/chromium/src/+/549738ba7a6df5e4872271233d40ecabc9857e7e

Patch Set 1 #

Total comments: 3

Patch Set 2 : Clean up negatives #

Total comments: 4

Patch Set 3 : Incorporate review feedback #

Patch Set 4 : Add transfer functions #

Patch Set 5 : git cl try #

Patch Set 6 : Fix OWNERS #

Patch Set 7 : Rebase #

Total comments: 1

Patch Set 8 : Fix ICCProfile::operator== (facepalm) #

Patch Set 9 : Dont' change ColorBehavior #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+669 lines, -572 lines) Patch
M ui/gfx/color_space.h View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -5 lines 0 comments Download
M ui/gfx/color_space.cc View 1 2 3 4 5 6 7 8 9 7 chunks +316 lines, -17 lines 0 comments Download
M ui/gfx/color_transform.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M ui/gfx/color_transform.cc View 1 2 3 4 5 6 7 8 9 16 chunks +99 lines, -292 lines 0 comments Download
M ui/gfx/color_transform_unittest.cc View 1 2 3 5 chunks +15 lines, -29 lines 0 comments Download
M ui/gfx/icc_profile.h View 3 chunks +10 lines, -26 lines 0 comments Download
M ui/gfx/icc_profile.cc View 1 2 3 4 5 6 7 8 9 6 chunks +120 lines, -97 lines 0 comments Download
M ui/gfx/icc_profile_unittest.cc View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
M ui/gfx/ipc/color/gfx_param_traits.h View 1 chunk +11 lines, -0 lines 0 comments Download
M ui/gfx/ipc/color/gfx_param_traits.cc View 4 chunks +51 lines, -11 lines 0 comments Download
M ui/gfx/ipc/color/gfx_param_traits_macros.h View 1 chunk +0 lines, -9 lines 0 comments Download
M ui/gfx/mojo/OWNERS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/mojo/icc_profile.mojom View 1 chunk +2 lines, -8 lines 0 comments Download
M ui/gfx/mojo/icc_profile.typemap View 1 chunk +3 lines, -8 lines 0 comments Download
D ui/gfx/mojo/icc_profile_struct_traits.h View 1 chunk +0 lines, -38 lines 0 comments Download
D ui/gfx/mojo/icc_profile_struct_traits.cc View 1 chunk +0 lines, -30 lines 0 comments Download

Messages

Total messages: 94 (61 generated)
ccameron
Ptal -- very excited to finally have the library support to make this change!
3 years, 11 months ago (2017-01-21 20:31:44 UTC) #5
hubbe
https://codereview.chromium.org/2652503002/diff/1/ui/gfx/color_transform.cc File ui/gfx/color_transform.cc (right): https://codereview.chromium.org/2652503002/diff/1/ui/gfx/color_transform.cc#newcode168 ui/gfx/color_transform.cc:168: case ColorSpace::TransferID::CUSTOM: Maybe implement this? (And also in ToLinear?)
3 years, 11 months ago (2017-01-22 04:30:31 UTC) #9
ccameron
https://codereview.chromium.org/2652503002/diff/1/ui/gfx/color_transform.cc File ui/gfx/color_transform.cc (right): https://codereview.chromium.org/2652503002/diff/1/ui/gfx/color_transform.cc#newcode168 ui/gfx/color_transform.cc:168: case ColorSpace::TransferID::CUSTOM: On 2017/01/22 04:30:30, hubbe wrote: > Maybe ...
3 years, 11 months ago (2017-01-23 18:58:58 UTC) #12
dcheng
https://codereview.chromium.org/2652503002/diff/20001/ui/gfx/icc_profile.cc File ui/gfx/icc_profile.cc (left): https://codereview.chromium.org/2652503002/diff/20001/ui/gfx/icc_profile.cc#oldcode60 ui/gfx/icc_profile.cc:60: return !(*this == other); Nit: probably best to leave ...
3 years, 11 months ago (2017-01-23 23:26:46 UTC) #15
ccameron
Thanks -- done! https://codereview.chromium.org/2652503002/diff/20001/ui/gfx/icc_profile.cc File ui/gfx/icc_profile.cc (left): https://codereview.chromium.org/2652503002/diff/20001/ui/gfx/icc_profile.cc#oldcode60 ui/gfx/icc_profile.cc:60: return !(*this == other); On 2017/01/23 ...
3 years, 11 months ago (2017-01-24 07:09:57 UTC) #18
ccameron
ptal I've gone ahead and implemented analytic transfer functions (and ensured that they returned the ...
3 years, 11 months ago (2017-01-25 07:09:44 UTC) #25
ccameron
ping on this
3 years, 11 months ago (2017-01-25 22:41:13 UTC) #26
dcheng
On 2017/01/25 22:41:13, ccameron wrote: > ping on this LGTM
3 years, 11 months ago (2017-01-25 22:42:14 UTC) #27
ccameron
Thanks! hubbe/msarett -- did you want to go over this again, or were you good ...
3 years, 11 months ago (2017-01-25 22:50:47 UTC) #28
msarett1
lgtm
3 years, 11 months ago (2017-01-25 22:51:49 UTC) #29
hubbe
lgtm
3 years, 11 months ago (2017-01-25 22:54:59 UTC) #30
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/2652503002/80001
3 years, 11 months ago (2017-01-25 23:03:07 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/350458)
3 years, 11 months ago (2017-01-25 23:18:31 UTC) #34
ccameron
What's the deal with that? ** Presubmit ERRORS ** Found changes to IPC files without ...
3 years, 11 months ago (2017-01-25 23:22:00 UTC) #35
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/2652503002/80001
3 years, 11 months ago (2017-01-25 23:23:48 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/350471)
3 years, 11 months ago (2017-01-25 23:35:54 UTC) #40
ccameron
On 2017/01/25 23:22:00, ccameron wrote: > What's the deal with that? > > ** Presubmit ...
3 years, 11 months ago (2017-01-26 00:01:57 UTC) #46
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/2652503002/90001
3 years, 11 months ago (2017-01-26 02:09:06 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/220616)
3 years, 11 months ago (2017-01-26 05:03:17 UTC) #53
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/2652503002/90001
3 years, 11 months ago (2017-01-26 06:45:23 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/220760)
3 years, 11 months ago (2017-01-26 08:32:50 UTC) #57
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/2652503002/110001
3 years, 11 months ago (2017-01-26 19:50:12 UTC) #60
commit-bot: I haz the power
Committed patchset #7 (id:110001) as https://chromium.googlesource.com/chromium/src/+/9791f229838cb7ebf67f111023350fef4bcaeef1
3 years, 11 months ago (2017-01-26 21:05:39 UTC) #63
suzyh_UTC10 (ex-contributor)
A revert of this CL (patchset #7 id:110001) has been created in https://codereview.chromium.org/2663453002/ by suzyh@chromium.org. ...
3 years, 11 months ago (2017-01-27 00:24:15 UTC) #64
ccameron
Okay, I think the re-land won't have problems. This wasn't the try-versus-continuous issue we saw ...
3 years, 10 months ago (2017-01-27 21:03:43 UTC) #66
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/2652503002/150001
3 years, 10 months ago (2017-01-27 21:10:13 UTC) #72
commit-bot: I haz the power
Your CL can not be processed by CQ because of: * Failed to parse additional ...
3 years, 10 months ago (2017-01-27 21:10:16 UTC) #74
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/2652503002/150001
3 years, 10 months ago (2017-01-27 21:14:41 UTC) #77
commit-bot: I haz the power
CQ has no permission to schedule in bucket tryserver.blink
3 years, 10 months ago (2017-01-27 21:15:43 UTC) #79
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/2652503002/150001
3 years, 10 months ago (2017-01-27 22:35:47 UTC) #82
commit-bot: I haz the power
Failed to apply patch for ui/gfx/color_transform.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-01-28 00:29:55 UTC) #84
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/2652503002/190001
3 years, 10 months ago (2017-01-28 17:05:04 UTC) #91
commit-bot: I haz the power
3 years, 10 months ago (2017-01-28 17:40:18 UTC) #94
Message was sent while issue was closed.
Committed patchset #10 (id:190001) as
https://chromium.googlesource.com/chromium/src/+/549738ba7a6df5e4872271233d40...

Powered by Google App Engine
This is Rietveld 408576698