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

Issue 2194303002: Refactor of SkColorSpaceXformOpts (Closed)

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

Description

Refactor of SkColorSpaceXformOpts (1) Performance is better or stays the same. (2) Code is split into functions (RasterPipeline-ish design). IMO, it's not really more or less readable. But I think it's now much easier add capabilities, apply optimizations, or do more refactors. Or to actually use RasterPipeline. I help back from trying any of these to try to keep this CL sane. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2194303002 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/+/15ee3deee8aca2bf6e658449f25ee34a8153e6ee

Patch Set 1 : Draft #

Patch Set 2 : Refactor of SkColorSpaceXformOpts #

Total comments: 18

Patch Set 3 : Response to comments #

Total comments: 3

Patch Set 4 : Mask instead of two shifts #

Patch Set 5 : Rebase on master #

Patch Set 6 : Fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+462 lines, -358 lines) Patch
M src/core/SkColorSpaceXform.cpp View 1 2 3 4 14 chunks +75 lines, -63 lines 0 comments Download
A src/core/SkColorSpaceXformOpts.h View 1 2 3 4 5 1 chunk +379 lines, -0 lines 0 comments Download
M src/core/SkOpts.h View 1 2 3 4 1 chunk +0 lines, -25 lines 0 comments Download
M src/core/SkOpts.cpp View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
D src/opts/SkColorXform_opts.h View 1 2 3 4 1 chunk +0 lines, -252 lines 0 comments Download
M src/opts/SkNx_neon.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/opts/SkNx_sse.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/opts/SkOpts_sse41.cpp View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 22 (16 generated)
msarett
I can merge this with https://codereview.chromium.org/2184543003/ if it seems logical. https://codereview.chromium.org/2194303002/diff/20001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (left): https://codereview.chromium.org/2194303002/diff/20001/src/core/SkColorSpaceXform.cpp#oldcode81 ...
4 years, 4 months ago (2016-08-01 19:53:58 UTC) #5
mtklein
https://codereview.chromium.org/2194303002/diff/20001/src/core/SkColorSpaceXformOpts.h File src/core/SkColorSpaceXformOpts.h (right): https://codereview.chromium.org/2194303002/diff/20001/src/core/SkColorSpaceXformOpts.h#newcode17 src/core/SkColorSpaceXformOpts.h:17: static SK_ALWAYS_INLINE void load_matrix(const float matrix[16], Sk4f& rXgXbX, Sk4f& ...
4 years, 4 months ago (2016-08-02 13:45:50 UTC) #6
msarett
FYI, this can't land until the png CL lands: https://codereview.chromium.org/2184543003/ https://codereview.chromium.org/2194303002/diff/20001/src/core/SkColorSpaceXformOpts.h File src/core/SkColorSpaceXformOpts.h (right): https://codereview.chromium.org/2194303002/diff/20001/src/core/SkColorSpaceXformOpts.h#newcode17 ...
4 years, 4 months ago (2016-08-02 16:50:17 UTC) #8
mtklein
lgtm https://codereview.chromium.org/2194303002/diff/60001/src/core/SkColorSpaceXformOpts.h File src/core/SkColorSpaceXformOpts.h (right): https://codereview.chromium.org/2194303002/diff/60001/src/core/SkColorSpaceXformOpts.h#newcode139 src/core/SkColorSpaceXformOpts.h:139: | (da << kAShift); Sk4i::Load(src) & 0xff000000 No ...
4 years, 4 months ago (2016-08-02 17:07:01 UTC) #9
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/2194303002/120001
4 years, 4 months ago (2016-08-02 18:29:34 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 18:30:34 UTC) #22
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://skia.googlesource.com/skia/+/15ee3deee8aca2bf6e658449f25ee34a8153e6ee

Powered by Google App Engine
This is Rietveld 408576698