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

Issue 2117773002: Refactor parsing and storage of SkGammas (Closed)

Created:
4 years, 5 months ago by msarett
Modified:
4 years, 5 months ago
Reviewers:
Brian Osman, mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Refactor parsing and storage of SkGammas Benefits: (1) Parses and stores gamma tags in a single allocation. (2) Recognizes equal gamma tags to skip parsing work and save memory. Non-Benefits: (1) Not less complicated. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2117773002 Committed: https://skia.googlesource.com/skia/+/2ea944c2b710caf29d4795ac953bad14224796f7 Committed: https://skia.googlesource.com/skia/+/959ccc1f3f49e1ddeb51c32c30ac4a2d94653856 Committed: https://skia.googlesource.com/skia/+/1b93bd1e6eba3d14593490e4e24a34546638c8da

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added a test #

Patch Set 3 : Use a Type enum instead of TypeMask #

Total comments: 43

Patch Set 4 : Response to comments #

Total comments: 9

Patch Set 5 : Fix nits #

Patch Set 6 : Rebase #

Patch Set 7 : Fix win #

Patch Set 8 : Fixed memory errors #

Patch Set 9 : Read fixed 0.16 properly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+857 lines, -775 lines) Patch
M src/core/SkColorSpace.cpp View 1 2 2 chunks +27 lines, -11 lines 0 comments Download
M src/core/SkColorSpacePriv.h View 1 chunk +0 lines, -13 lines 0 comments Download
M src/core/SkColorSpaceXform.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkColorSpaceXform.cpp View 1 2 3 4 5 6 7 7 chunks +112 lines, -297 lines 0 comments Download
M src/core/SkColorSpace_Base.h View 1 2 3 4 5 6 7 2 chunks +100 lines, -110 lines 0 comments Download
M src/core/SkColorSpace_ICC.cpp View 1 2 3 4 5 6 7 8 10 chunks +539 lines, -311 lines 0 comments Download
M tests/ColorSpaceXformTest.cpp View 1 2 3 4 5 6 7 2 chunks +78 lines, -31 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 59 (40 generated)
msarett
No need to look until after the Android rush... https://codereview.chromium.org/2117773002/diff/60001/src/core/SkColorSpace_ICC.cpp File src/core/SkColorSpace_ICC.cpp (right): https://codereview.chromium.org/2117773002/diff/60001/src/core/SkColorSpace_ICC.cpp#newcode273 src/core/SkColorSpace_ICC.cpp:273: ...
4 years, 5 months ago (2016-07-07 18:54:54 UTC) #7
msarett
Added a test.
4 years, 5 months ago (2016-07-12 17:36:57 UTC) #8
Brian Osman
https://codereview.chromium.org/2117773002/diff/60001/src/core/SkColorSpace_Base.h File src/core/SkColorSpace_Base.h (right): https://codereview.chromium.org/2117773002/diff/60001/src/core/SkColorSpace_Base.h#newcode17 src/core/SkColorSpace_Base.h:17: // There are four possible representations for gamma curves. ...
4 years, 5 months ago (2016-07-12 19:27:20 UTC) #9
msarett
https://codereview.chromium.org/2117773002/diff/60001/src/core/SkColorSpace_Base.h File src/core/SkColorSpace_Base.h (right): https://codereview.chromium.org/2117773002/diff/60001/src/core/SkColorSpace_Base.h#newcode17 src/core/SkColorSpace_Base.h:17: // There are four possible representations for gamma curves. ...
4 years, 5 months ago (2016-07-12 19:45:40 UTC) #10
msarett
Please take a look! https://codereview.chromium.org/2117773002/diff/100001/src/core/SkColorSpace_ICC.cpp File src/core/SkColorSpace_ICC.cpp (right): https://codereview.chromium.org/2117773002/diff/100001/src/core/SkColorSpace_ICC.cpp#newcode273 src/core/SkColorSpace_ICC.cpp:273: static SkGammas::Type parse_gamma(SkGammas::Data* outData, SkGammas::Params* ...
4 years, 5 months ago (2016-07-14 13:59:24 UTC) #11
msarett
Adding mtklein.
4 years, 5 months ago (2016-07-15 16:13:24 UTC) #13
mtklein
First pass. Haven't looked at src/core/SkColorSpace_ICC.cpp yet. https://codereview.chromium.org/2117773002/diff/100001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (right): https://codereview.chromium.org/2117773002/diff/100001/src/core/SkColorSpaceXform.cpp#newcode569 src/core/SkColorSpaceXform.cpp:569: if (!memcmp(&gammas->data(0), ...
4 years, 5 months ago (2016-07-17 13:58:19 UTC) #14
mtklein
https://codereview.chromium.org/2117773002/diff/100001/src/core/SkColorSpace_ICC.cpp File src/core/SkColorSpace_ICC.cpp (right): https://codereview.chromium.org/2117773002/diff/100001/src/core/SkColorSpace_ICC.cpp#newcode29 src/core/SkColorSpace_ICC.cpp:29: static uint16_t read_big_endian_short(const uint8_t* ptr) { These might be ...
4 years, 5 months ago (2016-07-18 17:18:55 UTC) #15
msarett
Thanks for the review! I've responded to comments. https://codereview.chromium.org/2117773002/diff/100001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (right): https://codereview.chromium.org/2117773002/diff/100001/src/core/SkColorSpaceXform.cpp#newcode569 src/core/SkColorSpaceXform.cpp:569: if ...
4 years, 5 months ago (2016-07-18 20:10:19 UTC) #18
mtklein
lgtm https://codereview.chromium.org/2117773002/diff/160001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (right): https://codereview.chromium.org/2117773002/diff/160001/src/core/SkColorSpaceXform.cpp#newcode641 src/core/SkColorSpaceXform.cpp:641: build_gamma_tables<float>(fSrcGammaTables, fSrcGammaTableStorage, 256, srcSpace, kToLinear); I suspect the ...
4 years, 5 months ago (2016-07-20 13:13:05 UTC) #19
msarett
Thanks a bunch for this review. https://codereview.chromium.org/2117773002/diff/160001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (right): https://codereview.chromium.org/2117773002/diff/160001/src/core/SkColorSpaceXform.cpp#newcode641 src/core/SkColorSpaceXform.cpp:641: build_gamma_tables<float>(fSrcGammaTables, fSrcGammaTableStorage, 256, ...
4 years, 5 months ago (2016-07-20 17:19:48 UTC) #20
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/2117773002/220001
4 years, 5 months ago (2016-07-20 18:43:48 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:220001) as https://skia.googlesource.com/skia/+/2ea944c2b710caf29d4795ac953bad14224796f7
4 years, 5 months ago (2016-07-20 18:44:47 UTC) #33
msarett
A revert of this CL (patchset #7 id:220001) has been created in https://codereview.chromium.org/2159253005/ by msarett@google.com. ...
4 years, 5 months ago (2016-07-20 19:58:38 UTC) #34
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/2117773002/280001
4 years, 5 months ago (2016-07-20 22:09:07 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:280001) as https://skia.googlesource.com/skia/+/959ccc1f3f49e1ddeb51c32c30ac4a2d94653856
4 years, 5 months ago (2016-07-20 22:10:07 UTC) #48
msarett
A revert of this CL (patchset #8 id:280001) has been created in https://codereview.chromium.org/2171623002/ by msarett@google.com. ...
4 years, 5 months ago (2016-07-20 23:14:00 UTC) #49
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/2117773002/300001
4 years, 5 months ago (2016-07-21 14:10:32 UTC) #57
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 14:11:30 UTC) #59
Message was sent while issue was closed.
Committed patchset #9 (id:300001) as
https://skia.googlesource.com/skia/+/1b93bd1e6eba3d14593490e4e24a34546638c8da

Powered by Google App Engine
This is Rietveld 408576698