DescriptionMove 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
Messages
Total messages: 25 (6 generated)
|