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

Issue 2325223002: Support RGBA/BGRA Premul/Unpremul from SkPNGImageEncoder (Closed)

Created:
4 years, 3 months ago by msarett
Modified:
4 years, 3 months ago
Reviewers:
scroggo, reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Support RGBA/BGRA Premul/Unpremul from SkPNGImageEncoder BUG=skia:5616 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2325223002 Committed: https://skia.googlesource.com/skia/+/f17b71f6c9b94e93f88e103b3b6cab61cbee76d7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Changed signature of transform_scanline() procs #

Patch Set 3 : Fix bug flipping R and B #

Total comments: 30

Patch Set 4 : Response to comments #

Total comments: 4

Patch Set 5 : A few more fixes #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -108 lines) Patch
M src/images/SkPNGImageEncoder.cpp View 1 2 3 4 10 chunks +72 lines, -47 lines 0 comments Download
M src/images/transform_scanline.h View 1 2 3 4 6 chunks +89 lines, -40 lines 0 comments Download
M tests/CodecTest.cpp View 1 2 3 4 5 2 chunks +78 lines, -21 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 37 (26 generated)
msarett
4 years, 3 months ago (2016-09-09 20:01:01 UTC) #3
reed1
https://codereview.chromium.org/2325223002/diff/1/src/images/SkPNGImageEncoder.cpp File src/images/SkPNGImageEncoder.cpp (right): https://codereview.chromium.org/2325223002/diff/1/src/images/SkPNGImageEncoder.cpp#newcode72 src/images/SkPNGImageEncoder.cpp:72: { kRGBA_8888_SkColorType, kUnpremul_SkAlphaType, transform_scanline_RGBA }, can transform_scanline_RGBA be the ...
4 years, 3 months ago (2016-09-09 21:07:37 UTC) #4
msarett
Changed signature of transform_scanline procs. Added tests for kIndex8. https://codereview.chromium.org/2325223002/diff/1/src/images/SkPNGImageEncoder.cpp File src/images/SkPNGImageEncoder.cpp (right): https://codereview.chromium.org/2325223002/diff/1/src/images/SkPNGImageEncoder.cpp#newcode72 src/images/SkPNGImageEncoder.cpp:72: ...
4 years, 3 months ago (2016-09-12 13:48:51 UTC) #5
msarett
4 years, 3 months ago (2016-09-12 15:22:36 UTC) #15
scroggo
https://codereview.chromium.org/2325223002/diff/40001/src/images/SkPNGImageEncoder.cpp File src/images/SkPNGImageEncoder.cpp (right): https://codereview.chromium.org/2325223002/diff/40001/src/images/SkPNGImageEncoder.cpp#newcode82 src/images/SkPNGImageEncoder.cpp:82: for (int i = SK_ARRAY_COUNT(gMap) - 1; i >= ...
4 years, 3 months ago (2016-09-12 17:16:50 UTC) #16
msarett
https://codereview.chromium.org/2325223002/diff/40001/src/images/SkPNGImageEncoder.cpp File src/images/SkPNGImageEncoder.cpp (right): https://codereview.chromium.org/2325223002/diff/40001/src/images/SkPNGImageEncoder.cpp#newcode82 src/images/SkPNGImageEncoder.cpp:82: for (int i = SK_ARRAY_COUNT(gMap) - 1; i >= ...
4 years, 3 months ago (2016-09-12 19:39:20 UTC) #21
scroggo
lgtm https://codereview.chromium.org/2325223002/diff/40001/src/images/transform_scanline.h File src/images/transform_scanline.h (right): https://codereview.chromium.org/2325223002/diff/40001/src/images/transform_scanline.h#newcode19 src/images/transform_scanline.h:19: * Function template for transforming scanlines. On 2016/09/12 ...
4 years, 3 months ago (2016-09-12 19:54:31 UTC) #22
msarett
https://codereview.chromium.org/2325223002/diff/40001/src/images/transform_scanline.h File src/images/transform_scanline.h (right): https://codereview.chromium.org/2325223002/diff/40001/src/images/transform_scanline.h#newcode19 src/images/transform_scanline.h:19: * Function template for transforming scanlines. On 2016/09/12 19:54:31, ...
4 years, 3 months ago (2016-09-12 20:27:57 UTC) #24
scroggo
lgtm
4 years, 3 months ago (2016-09-12 20:35:31 UTC) #31
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/2325223002/180001
4 years, 3 months ago (2016-09-12 21:29:10 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 21:30:07 UTC) #37
Message was sent while issue was closed.
Committed patchset #6 (id:180001) as
https://skia.googlesource.com/skia/+/f17b71f6c9b94e93f88e103b3b6cab61cbee76d7

Powered by Google App Engine
This is Rietveld 408576698