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

Issue 2330053002: Encode kIndex8 to PNG more efficiently (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

Encode kIndex8 to PNG more efficiently Only write non-opaque alpha values to the tRNS chunk. BUG=skia:5616 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2330053002 Committed: https://skia.googlesource.com/skia/+/fed033491ca3e9ae80fd02bb77b08ce425f4f4b4

Patch Set 1 #

Total comments: 4

Patch Set 2 : Skip loop if all colors are non-opaque, add back in SK_RESTRICT #

Total comments: 3

Patch Set 3 : Rebase #

Patch Set 4 : Fix loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -55 lines) Patch
M src/images/SkPNGImageEncoder.cpp View 1 2 3 2 chunks +52 lines, -55 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (14 generated)
msarett
4 years, 3 months ago (2016-09-12 15:22:12 UTC) #3
scroggo
lgtm Is there an associated bug? https://codereview.chromium.org/2330053002/diff/1/src/images/SkPNGImageEncoder.cpp File src/images/SkPNGImageEncoder.cpp (left): https://codereview.chromium.org/2330053002/diff/1/src/images/SkPNGImageEncoder.cpp#oldcode114 src/images/SkPNGImageEncoder.cpp:114: png_color* SK_RESTRICT palette, ...
4 years, 3 months ago (2016-09-12 16:40:57 UTC) #4
msarett
"Is there an associated bug?" Adding the bug related to recent image encoder work. Though ...
4 years, 3 months ago (2016-09-12 16:58:31 UTC) #6
mtklein
This does seem like one of the scenarios where restrict may be helpful. It looks ...
4 years, 3 months ago (2016-09-12 17:02:48 UTC) #7
scroggo
https://codereview.chromium.org/2330053002/diff/20001/src/images/SkPNGImageEncoder.cpp File src/images/SkPNGImageEncoder.cpp (right): https://codereview.chromium.org/2330053002/diff/20001/src/images/SkPNGImageEncoder.cpp#newcode152 src/images/SkPNGImageEncoder.cpp:152: while (i < count && currIndex != count) { ...
4 years, 3 months ago (2016-09-12 17:12:48 UTC) #8
msarett
https://codereview.chromium.org/2330053002/diff/20001/src/images/SkPNGImageEncoder.cpp File src/images/SkPNGImageEncoder.cpp (right): https://codereview.chromium.org/2330053002/diff/20001/src/images/SkPNGImageEncoder.cpp#newcode152 src/images/SkPNGImageEncoder.cpp:152: while (i < count && currIndex != count) { ...
4 years, 3 months ago (2016-09-12 17:17:13 UTC) #9
scroggo
lgtm https://codereview.chromium.org/2330053002/diff/20001/src/images/SkPNGImageEncoder.cpp File src/images/SkPNGImageEncoder.cpp (right): https://codereview.chromium.org/2330053002/diff/20001/src/images/SkPNGImageEncoder.cpp#newcode152 src/images/SkPNGImageEncoder.cpp:152: while (i < count && currIndex != count) ...
4 years, 3 months ago (2016-09-12 17:19:44 UTC) #10
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/2330053002/60001
4 years, 3 months ago (2016-09-13 13:17:34 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 14:08:18 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/fed033491ca3e9ae80fd02bb77b08ce425f4f4b4

Powered by Google App Engine
This is Rietveld 408576698