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

Issue 2449243003: Initial implementation of a SkColorSpace_A2B xform (Closed)

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

Description

Initial implementation of a SkColorSpace_A2B xform There is support for all features of SkColorSpace_A2B. Tests for these functionality were adapted from the XYZ xform, plus a CLUT-specific test was added. Shared functions used by both SkColorSpaceXform_XYZ and SkColorSpaceXform_A2B have been moved into a shared header. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2449243003 CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/2563601fc2b0505619f905f86bd249ae630197cc

Patch Set 1 #

Total comments: 1

Patch Set 2 : build error+forgot to premuliplty last 0-3 pixels of a line+whitespace warnings #

Total comments: 20

Patch Set 3 : expressed all non-table gammas as parametric for simplicity #

Patch Set 4 : switched from .gypi to .gni to fix build errors, also whitespace fixes #

Total comments: 33

Patch Set 5 : updated implementation to use SkRasterPipeline #

Total comments: 75

Patch Set 6 : responding to comments #

Total comments: 2

Patch Set 7 : moved all the (now) unused stuff back from SkColorSpaceXformPriv.h to SkColorSpaceXform.cpp #

Total comments: 12

Patch Set 8 : responding to comments #

Total comments: 2

Patch Set 9 : responding to comments #

Patch Set 10 : fixed compile error on certain trybots related to RVO move-elision #

Unified diffs Side-by-side diffs Delta from patch set Stats (+884 lines, -189 lines) Patch
M gm/labpcsdemo.cpp View 4 chunks +5 lines, -98 lines 0 comments Download
gn/core.gni View 2 chunks +4 lines, -0 lines 0 comments Download
A src/core/SkColorLookUpTable.h View 1 chunk +40 lines, -0 lines 0 comments Download
A src/core/SkColorLookUpTable.cpp View 1 chunk +101 lines, -0 lines 0 comments Download
src/core/SkColorSpaceXform.cpp View 14 chunks +19 lines, -64 lines 0 comments Download
A src/core/SkColorSpaceXformPriv.h View 1 chunk +56 lines, -0 lines 0 comments Download
A src/core/SkColorSpaceXform_A2B.h View 1 chunk +54 lines, -0 lines 0 comments Download
A src/core/SkColorSpaceXform_A2B.cpp View 1 chunk +352 lines, -0 lines 0 comments Download
M src/core/SkColorSpace_A2B.h View 2 chunks +2 lines, -1 line 0 comments Download
M src/core/SkColorSpace_Base.h View 2 chunks +1 line, -24 lines 0 comments Download
M src/core/SkRasterPipeline.h View 2 chunks +4 lines, -1 line 0 comments Download
M src/opts/SkRasterPipeline_opts.h View 4 chunks +106 lines, -0 lines 0 comments Download
M tests/ColorSpaceXformTest.cpp View 8 chunks +140 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 65 (43 generated)
raftias
https://codereview.chromium.org/2449243003/diff/1/src/core/SkColorSpaceXform_A2B.cpp File src/core/SkColorSpaceXform_A2B.cpp (right): https://codereview.chromium.org/2449243003/diff/1/src/core/SkColorSpaceXform_A2B.cpp#newcode81 src/core/SkColorSpaceXform_A2B.cpp:81: /*const Sk4f l = *rSrc * 100.f; This is ...
4 years, 1 month ago (2016-10-26 18:39:15 UTC) #10
msarett
General design looks good! I'm excited about this change. Very intrigued about this potentially being ...
4 years, 1 month ago (2016-10-26 20:43:30 UTC) #13
msarett
FYI, ignore the failed Nexus 5 bot, it is flaky.
4 years, 1 month ago (2016-10-26 22:03:40 UTC) #14
raftias
https://codereview.chromium.org/2449243003/diff/20001/src/core/SkColorSpaceXformPriv.h File src/core/SkColorSpaceXformPriv.h (right): https://codereview.chromium.org/2449243003/diff/20001/src/core/SkColorSpaceXformPriv.h#newcode17 src/core/SkColorSpaceXformPriv.h:17: #define SkCSXformPrintfDefined 0 On 2016/10/26 20:43:29, msarett wrote: > ...
4 years, 1 month ago (2016-10-27 18:39:39 UTC) #21
msarett
https://codereview.chromium.org/2449243003/diff/60001/src/core/SkColorSpaceXformPriv.h File src/core/SkColorSpaceXformPriv.h (right): https://codereview.chromium.org/2449243003/diff/60001/src/core/SkColorSpaceXformPriv.h#newcode30 src/core/SkColorSpaceXformPriv.h:30: const Sk4f& rXgXbX, const Sk4f& rYgYbY, const Sk4f& rZgZbZ, ...
4 years, 1 month ago (2016-10-27 19:36:44 UTC) #24
mtklein_C
https://codereview.chromium.org/2449243003/diff/60001/src/core/SkColorSpaceXform_A2B.cpp File src/core/SkColorSpaceXform_A2B.cpp (right): https://codereview.chromium.org/2449243003/diff/60001/src/core/SkColorSpaceXform_A2B.cpp#newcode159 src/core/SkColorSpaceXform_A2B.cpp:159: Sk4f Y = (l + 16.f) * (1.f/116.f); It's ...
4 years, 1 month ago (2016-10-31 18:43:00 UTC) #26
raftias
https://codereview.chromium.org/2449243003/diff/60001/src/core/SkColorSpaceXformPriv.h File src/core/SkColorSpaceXformPriv.h (right): https://codereview.chromium.org/2449243003/diff/60001/src/core/SkColorSpaceXformPriv.h#newcode30 src/core/SkColorSpaceXformPriv.h:30: const Sk4f& rXgXbX, const Sk4f& rYgYbY, const Sk4f& rZgZbZ, ...
4 years, 1 month ago (2016-11-08 21:19:58 UTC) #30
msarett1
I very much like the overall design. https://codereview.chromium.org/2449243003/diff/80001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (left): https://codereview.chromium.org/2449243003/diff/80001/src/core/SkColorSpaceXform.cpp#oldcode495 src/core/SkColorSpaceXform.cpp:495: static AI ...
4 years, 1 month ago (2016-11-09 00:01:05 UTC) #34
mtklein_C
I wrote a lot because this is fun. I like where this is going. https://codereview.chromium.org/2449243003/diff/80001/src/core/SkColorSpaceXform_A2B.cpp ...
4 years, 1 month ago (2016-11-09 11:04:37 UTC) #35
raftias
https://codereview.chromium.org/2449243003/diff/80001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (left): https://codereview.chromium.org/2449243003/diff/80001/src/core/SkColorSpaceXform.cpp#oldcode495 src/core/SkColorSpaceXform.cpp:495: static AI void load_matrix(const float matrix[16], On 2016/11/09 00:01:04, ...
4 years, 1 month ago (2016-11-10 21:36:07 UTC) #42
msarett1
All my comments are nits, so lgtm. Particularly, SkColorSpaceXform lgtm. Let's wait on Mike's approval ...
4 years, 1 month ago (2016-11-11 14:36:52 UTC) #45
msarett1
Sorry forgot one thing. From the CL description: > There is support for all features ...
4 years, 1 month ago (2016-11-11 14:41:24 UTC) #46
raftias
https://codereview.chromium.org/2449243003/diff/120001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (right): https://codereview.chromium.org/2449243003/diff/120001/src/core/SkColorSpaceXform.cpp#newcode483 src/core/SkColorSpaceXform.cpp:483: static AI void load_rgb_linear(const uint32_t* src, Sk4f& r, Sk4f& ...
4 years, 1 month ago (2016-11-11 19:36:05 UTC) #48
mtklein_C
With the caveat that I read only files with "SkRasterPipeline" in their names, this looks ...
4 years, 1 month ago (2016-11-11 21:20:22 UTC) #49
mtklein_C
https://codereview.chromium.org/2449243003/diff/140001/src/opts/SkRasterPipeline_opts.h File src/opts/SkRasterPipeline_opts.h (right): https://codereview.chromium.org/2449243003/diff/140001/src/opts/SkRasterPipeline_opts.h#newcode14 src/opts/SkRasterPipeline_opts.h:14: #include "SkMatrix44.h" This is probably no longer needed.
4 years, 1 month ago (2016-11-11 21:20:57 UTC) #50
raftias
https://codereview.chromium.org/2449243003/diff/140001/src/opts/SkRasterPipeline_opts.h File src/opts/SkRasterPipeline_opts.h (right): https://codereview.chromium.org/2449243003/diff/140001/src/opts/SkRasterPipeline_opts.h#newcode14 src/opts/SkRasterPipeline_opts.h:14: #include "SkMatrix44.h" On 2016/11/11 21:20:57, mtklein_C wrote: > This ...
4 years, 1 month ago (2016-11-11 21:42:37 UTC) #51
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/2449243003/160001
4 years, 1 month ago (2016-11-11 21:45:17 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-GN-Trybot on master.client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-GN-Trybot/builds/3012)
4 years, 1 month ago (2016-11-11 21:49:13 UTC) #56
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/2449243003/180001
4 years, 1 month ago (2016-11-11 22:07:28 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-GN_Android-Trybot on master.client.skia.android (JOB_FAILED, http://build.chromium.org/p/client.skia.android/builders/Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-GN_Android-Trybot/builds/1724)
4 years, 1 month ago (2016-11-11 22:37:54 UTC) #61
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/2449243003/180001
4 years, 1 month ago (2016-11-11 22:41:31 UTC) #63
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 23:27:44 UTC) #65
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://skia.googlesource.com/skia/+/2563601fc2b0505619f905f86bd249ae630197cc

Powered by Google App Engine
This is Rietveld 408576698