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

Issue 2159993003: Improve naive SkColorXform to half floats (Closed)

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

Description

Improve naive SkColorXform to half floats This should give us a good baseline to explore using SkRasterPipeline. A particular colorxform to half float drops from 425us to 282us on my desktop. Color Xform to Half Float (HP z620) Original 425us Trans16 (not 32) 355us Vector Trans16 378us Trans16 + Keep Halfs in Vector 335us Vector Trans16 + Keep Halfs in Vector 282us Final 282us Color Xform to Half Float (Nexus 5X) Original 556us Final 472us BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2159993003 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/+/6bdbf4412bd1a6fe26be1042ccf080174b13021f

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix NO_SIMD bot #

Total comments: 13

Patch Set 3 : Response to comments #

Total comments: 6

Patch Set 4 : Prettier code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -65 lines) Patch
M bench/ColorCodecBench.h View 1 chunk +2 lines, -1 line 0 comments Download
M bench/ColorCodecBench.cpp View 8 chunks +36 lines, -21 lines 0 comments Download
M src/core/SkHalf.h View 1 2 4 chunks +10 lines, -12 lines 0 comments Download
M src/core/SkMipMap.cpp View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkNx.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M src/core/SkXfermodeF16.cpp View 1 2 7 chunks +14 lines, -12 lines 0 comments Download
M src/effects/gradients/Sk4fGradientPriv.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M src/opts/SkColorXform_opts.h View 1 2 3 2 chunks +7 lines, -14 lines 0 comments Download
M src/opts/SkNx_neon.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M src/opts/SkNx_sse.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M tests/Float16Test.cpp View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (20 generated)
msarett
https://codereview.chromium.org/2159993003/diff/20001/src/core/SkHalf.h File src/core/SkHalf.h (right): https://codereview.chromium.org/2159993003/diff/20001/src/core/SkHalf.h#newcode68 src/core/SkHalf.h:68: static inline Sk4h SkFloatToVectorHalf_finite(const Sk4f& fs) { I'm seeing ...
4 years, 5 months ago (2016-07-18 22:09:09 UTC) #9
mtklein
https://codereview.chromium.org/2159993003/diff/20001/src/core/SkHalf.h File src/core/SkHalf.h (right): https://codereview.chromium.org/2159993003/diff/20001/src/core/SkHalf.h#newcode68 src/core/SkHalf.h:68: static inline Sk4h SkFloatToVectorHalf_finite(const Sk4f& fs) { On 2016/07/18 ...
4 years, 5 months ago (2016-07-19 12:45:46 UTC) #11
msarett
https://codereview.chromium.org/2159993003/diff/20001/src/core/SkHalf.h File src/core/SkHalf.h (right): https://codereview.chromium.org/2159993003/diff/20001/src/core/SkHalf.h#newcode68 src/core/SkHalf.h:68: static inline Sk4h SkFloatToVectorHalf_finite(const Sk4f& fs) { On 2016/07/19 ...
4 years, 5 months ago (2016-07-19 15:24:49 UTC) #16
mtklein
lgtm, with some style suggestions https://codereview.chromium.org/2159993003/diff/80001/src/core/SkNx.h File src/core/SkNx.h (right): https://codereview.chromium.org/2159993003/diff/80001/src/core/SkNx.h#newcode313 src/core/SkNx.h:313: SI void Sk4h_store4(void* dst, ...
4 years, 5 months ago (2016-07-19 15:37:47 UTC) #17
msarett
https://codereview.chromium.org/2159993003/diff/80001/src/core/SkNx.h File src/core/SkNx.h (right): https://codereview.chromium.org/2159993003/diff/80001/src/core/SkNx.h#newcode313 src/core/SkNx.h:313: SI void Sk4h_store4(void* dst, const Sk4h& r, const Sk4h& ...
4 years, 5 months ago (2016-07-19 15:47:20 UTC) #18
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/2159993003/100001
4 years, 5 months ago (2016-07-19 16:06:59 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 16:07:58 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://skia.googlesource.com/skia/+/6bdbf4412bd1a6fe26be1042ccf080174b13021f

Powered by Google App Engine
This is Rietveld 408576698