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

Issue 2444553002: Refactored SkColorSpace_A2B to allow arbitrary ordering of elements (Closed)

Created:
4 years, 2 months ago by raftias
Modified:
4 years, 1 month ago
Reviewers:
msarett, msarett1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Refactored SkColorSpace_A2B to allow arbitrary ordering of elements This is essential for representing non-lutAtoBType A2B tags such as lut16Type, lut8Type, mpet. Parsing of A2B0 tags was also moved ahead of the TRC/XYZ-matrix parsing, as profiles examined with both tags either had the TRC/XYZ tags as a fall-back or were incorrectly displayed if only the TRC/XYZ tags were used. This was submitted alone to reduce CL size. Tests that will use these changes will be introduced in the subsequent CLs that add on lut8/16Type A2B0 parsing. We already have lut16Type test images and these have been tested locally, but require additional code not submitted yet for lut16Type ICC profile parsing and A2B colorspace xforms. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2444553002 Committed: https://skia.googlesource.com/skia/+/026f223d8641beeae19ed0bdbeca738be62256f5

Patch Set 1 #

Total comments: 12

Patch Set 2 : responding to comments #

Total comments: 7

Patch Set 3 : responding to comments #

Messages

Total messages: 18 (7 generated)
raftias
https://codereview.chromium.org/2444553002/diff/1/src/core/SkColorSpace_A2B.h File src/core/SkColorSpace_A2B.h (right): https://codereview.chromium.org/2444553002/diff/1/src/core/SkColorSpace_A2B.h#newcode94 src/core/SkColorSpace_A2B.h:94: SkGammaNamed fGammaNamed; It would be possible to join these ...
4 years, 2 months ago (2016-10-21 22:04:09 UTC) #4
msarett
Do we have a test image that requires this refactor? Can you write a test?
4 years, 1 month ago (2016-10-24 13:34:38 UTC) #5
raftias
On 2016/10/24 13:34:38, msarett wrote: > Do we have a test image that requires this ...
4 years, 1 month ago (2016-10-24 13:57:25 UTC) #7
raftias
4 years, 1 month ago (2016-10-24 13:57:35 UTC) #8
msarett1
https://codereview.chromium.org/2444553002/diff/1/src/core/SkColorSpace_A2B.h File src/core/SkColorSpace_A2B.h (right): https://codereview.chromium.org/2444553002/diff/1/src/core/SkColorSpace_A2B.h#newcode94 src/core/SkColorSpace_A2B.h:94: SkGammaNamed fGammaNamed; On 2016/10/21 22:04:09, raftias wrote: > It ...
4 years, 1 month ago (2016-10-24 14:12:42 UTC) #10
raftias
https://codereview.chromium.org/2444553002/diff/1/src/core/SkColorSpace_A2B.h File src/core/SkColorSpace_A2B.h (right): https://codereview.chromium.org/2444553002/diff/1/src/core/SkColorSpace_A2B.h#newcode94 src/core/SkColorSpace_A2B.h:94: SkGammaNamed fGammaNamed; On 2016/10/24 14:12:42, msarett1 wrote: > On ...
4 years, 1 month ago (2016-10-24 15:26:47 UTC) #11
msarett1
lgtm Good CL size. Thanks for breaking this up. https://codereview.chromium.org/2444553002/diff/20001/src/core/SkColorSpace_A2B.cpp File src/core/SkColorSpace_A2B.cpp (right): https://codereview.chromium.org/2444553002/diff/20001/src/core/SkColorSpace_A2B.cpp#newcode10 src/core/SkColorSpace_A2B.cpp:10: ...
4 years, 1 month ago (2016-10-24 15:35:41 UTC) #12
raftias
https://codereview.chromium.org/2444553002/diff/20001/src/core/SkColorSpace_A2B.cpp File src/core/SkColorSpace_A2B.cpp (right): https://codereview.chromium.org/2444553002/diff/20001/src/core/SkColorSpace_A2B.cpp#newcode10 src/core/SkColorSpace_A2B.cpp:10: SkColorSpace_A2B::SkColorSpace_A2B(PCS pcs, sk_sp<SkData> profileData, std::vector<Element> elements) On 2016/10/24 15:35:41, ...
4 years, 1 month ago (2016-10-24 15:52:39 UTC) #13
msarett1
LGTM
4 years, 1 month ago (2016-10-24 15:55:18 UTC) #14
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/2444553002/40001
4 years, 1 month ago (2016-10-24 16:21:38 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 16:52:29 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/026f223d8641beeae19ed0bdbeca738be62256f5

Powered by Google App Engine
This is Rietveld 408576698