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

Issue 1319413003: Move float<->byte conversions into Sk4f. (Closed)

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

Description

Move float<->byte conversions into Sk4f. This lets us avoid conversions to [0.0, 1.0] space and rounding that aren't necessary for SkColorCubeFilter_opts.h. Dropping rounding on the way back to bytes means we'll see a bunch of off-by-1 diffs. Rough perf effect: SSSE3: 110 -> 93 (~15%) NEON: 465 -> 375 (~20%) This is the beginning of the end for SkPMFloat as an entity distinct from Sk4f. I've kept it for now so I can convert sites one by one and think about how things that really want to keep PM color order will work. BUG=skia:4117 Committed: https://skia.googlesource.com/skia/+/aba1dc8c6aa5cbc4f38ddfce757832359f200b54

Patch Set 1 #

Patch Set 2 : correct order when rgba #

Patch Set 3 : () #

Patch Set 4 : fastest #

Patch Set 5 : the rest #

Patch Set 6 : typos #

Patch Set 7 : note #

Patch Set 8 : mulAdd is moot #

Patch Set 9 : ranges #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -194 lines) Patch
M src/core/SkNx.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -0 lines 0 comments Download
M src/core/SkPMFloat.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -16 lines 0 comments Download
M src/opts/SkColorCubeFilter_opts.h View 1 2 3 4 chunks +14 lines, -15 lines 1 comment Download
M src/opts/SkNx_neon.h View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
M src/opts/SkNx_sse.h View 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
D src/opts/SkPMFloat_neon.h View 1 2 3 4 1 chunk +0 lines, -50 lines 0 comments Download
D src/opts/SkPMFloat_none.h View 1 2 3 4 1 chunk +0 lines, -48 lines 0 comments Download
M src/opts/SkPMFloat_sse.h View 1 2 3 4 1 chunk +0 lines, -65 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319413003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319413003/140001
5 years, 3 months ago (2015-08-31 18:37:31 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-31 18:42:33 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319413003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319413003/160001
5 years, 3 months ago (2015-08-31 18:52:52 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-31 18:58:33 UTC) #8
mtklein_C
This is, I think, a better alternative to https://codereview.chromium.org/1308903003/.
5 years, 3 months ago (2015-08-31 19:00:38 UTC) #10
mtklein_C
If this all looks good, I'll be sending out this follow up to remove SkPMFloat ...
5 years, 3 months ago (2015-08-31 20:20:38 UTC) #11
reed1
yummy yummy fast fast lgtm
5 years, 3 months ago (2015-08-31 21:16:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319413003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319413003/160001
5 years, 3 months ago (2015-08-31 21:39:29 UTC) #14
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://skia.googlesource.com/skia/+/aba1dc8c6aa5cbc4f38ddfce757832359f200b54
5 years, 3 months ago (2015-08-31 21:40:02 UTC) #15
Noel Gordon
https://codereview.chromium.org/1319413003/diff/160001/src/opts/SkColorCubeFilter_opts.h File src/opts/SkColorCubeFilter_opts.h (left): https://codereview.chromium.org/1319413003/diff/160001/src/opts/SkColorCubeFilter_opts.h#oldcode77 src/opts/SkColorCubeFilter_opts.h:77: round() clamped as well. Dose the new CL clamp?
5 years, 3 months ago (2015-09-01 04:00:06 UTC) #16
Noel Gordon
On 2015/09/01 04:00:06, noel gordon wrote: > https://codereview.chromium.org/1319413003/diff/160001/src/opts/SkColorCubeFilter_opts.h > File src/opts/SkColorCubeFilter_opts.h (left): > > https://codereview.chromium.org/1319413003/diff/160001/src/opts/SkColorCubeFilter_opts.h#oldcode77 ...
5 years, 3 months ago (2015-09-01 04:04:37 UTC) #17
mtklein
On 2015/09/01 04:04:37, noel gordon wrote: > On 2015/09/01 04:00:06, noel gordon wrote: > > ...
5 years, 3 months ago (2015-09-01 11:57:42 UTC) #18
Noel Gordon
On 2015/09/01 11:57:42, mtklein wrote: > On 2015/09/01 04:04:37, noel gordon wrote: > > On ...
5 years, 3 months ago (2015-09-01 12:43:47 UTC) #19
mtklein
On 2015/09/01 12:43:47, noel gordon wrote: > On 2015/09/01 11:57:42, mtklein wrote: > > On ...
5 years, 3 months ago (2015-09-01 12:45:47 UTC) #20
Noel Gordon
On 2015/09/01 12:45:47, mtklein wrote: > Yes, round() rounded and clamped. https://codereview.chromium.org/1312053004/ ? That was ...
5 years, 3 months ago (2015-09-01 12:50:00 UTC) #21
Noel Gordon
On 2015/09/01 12:50:00, noel gordon wrote: > On 2015/09/01 12:45:47, mtklein wrote: > > > ...
5 years, 3 months ago (2015-09-01 13:09:31 UTC) #22
mtklein
On 2015/09/01 13:09:31, noel gordon wrote: > On 2015/09/01 12:50:00, noel gordon wrote: > > ...
5 years, 3 months ago (2015-09-01 13:19:32 UTC) #23
Noel Gordon
On 2015/09/01 13:19:32, mtklein wrote: > On 2015/09/01 13:09:31, noel gordon wrote: > > On ...
5 years, 3 months ago (2015-09-01 13:57:42 UTC) #24
Noel Gordon
5 years, 3 months ago (2015-09-01 14:00:45 UTC) #25
Message was sent while issue was closed.
Note http://bit.ly/1Gkadze row 15 measured the GPU case, so if the software
SkColorCubeFilter case matches the GPU, then ...

Powered by Google App Engine
This is Rietveld 408576698