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

Issue 2279313003: Make swizzler optional for SkPngCodec, refactor xforms (Closed)

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

Description

Make 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -84 lines) Patch
M src/codec/SkPngCodec.h View 1 2 2 chunks +19 lines, -6 lines 0 comments Download
M src/codec/SkPngCodec.cpp View 1 9 chunks +97 lines, -78 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (9 generated)
msarett
https://codereview.chromium.org/2279313003/diff/1/src/codec/SkPngCodec.h File src/codec/SkPngCodec.h (right): https://codereview.chromium.org/2279313003/diff/1/src/codec/SkPngCodec.h#newcode80 src/codec/SkPngCodec.h:80: enum XformMode { There are two more cases where ...
4 years, 3 months ago (2016-08-26 16:37:45 UTC) #3
msarett
Any thoughts?
4 years, 3 months ago (2016-08-30 18:40:40 UTC) #4
mtklein
lgtm https://codereview.chromium.org/2279313003/diff/20001/src/codec/SkPngCodec.h File src/codec/SkPngCodec.h (right): https://codereview.chromium.org/2279313003/diff/20001/src/codec/SkPngCodec.h#newcode94 src/codec/SkPngCodec.h:94: XformMode fXformMode; probably clearer with less space between ...
4 years, 3 months ago (2016-09-01 18:57:50 UTC) #5
msarett
https://codereview.chromium.org/2279313003/diff/20001/src/codec/SkPngCodec.h File src/codec/SkPngCodec.h (right): https://codereview.chromium.org/2279313003/diff/20001/src/codec/SkPngCodec.h#newcode94 src/codec/SkPngCodec.h:94: XformMode fXformMode; On 2016/09/01 18:57:49, mtklein wrote: > probably ...
4 years, 3 months ago (2016-09-02 00:52:54 UTC) #8
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/2279313003/40001
4 years, 3 months ago (2016-09-02 01:32:00 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 01:32:56 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/400a93bd6c5a07aa8c83de9e31e224243e59089e

Powered by Google App Engine
This is Rietveld 408576698