DescriptionMake swizzler optional for SkPngCodec, refactor xforms
I think is a good redesign that will allow us to handle more png
xforms more efficiently. And I also think it reduces a bit of
complexity.
PNGs can be RGBA, RGB, Gray, GrayAlpha, Index8.
The swizzler handles all of those input formats and all Skia
output formats. Swizzler also provides sampling/subsetting.
Color xforms currently only handles RGBA. So we use the
swizzler to convert to RGBA first. I've started thinking
about adding RGB, Gray, etc. support for color xforms.
In this case (and the RGBA case), we should skip the
swizzling step.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2279313003
Committed: https://skia.googlesource.com/skia/+/400a93bd6c5a07aa8c83de9e31e224243e59089e
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fix #
Total comments: 2
Patch Set 3 : Less spacing #
Depends on Patchset: Messages
Total messages: 15 (9 generated)
|