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

Issue 2407543002: Simplify rowsDecoded returned by incrementalDecode (Closed)

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

Description

Simplify rowsDecoded returned by incrementalDecode When sampling, we previously had to figure out the number of rows that were written to the output based on the value reported by incrementalDecode. (We also messed up the first time - see the fix in crrev.com/2343153003.) Instead, make incrementalDecode report the actual number of rows written to. This can be provided directly to fill. Make SkPngCodec report the correct number of rows, by incrementing its count when it actually writes to the destination. This also will simplify my in progress GIF change. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2407543002 Committed: https://skia.googlesource.com/skia/+/ff9f7bbef6fdbd2ae7965ff18981aa8df33abd96

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Patch Set 3 : Use fRowsWrittenToOutput in decodeAllRows (fix rebase issues) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -11 lines) Patch
M src/codec/SkPngCodec.cpp View 1 2 9 chunks +20 lines, -8 lines 0 comments Download
M src/codec/SkSampledCodec.cpp View 1 chunk +2 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (5 generated)
scroggo_chromium
4 years, 2 months ago (2016-10-07 21:04:59 UTC) #3
msarett
lgtm https://codereview.chromium.org/2407543002/diff/1/src/codec/SkPngCodec.cpp File src/codec/SkPngCodec.cpp (right): https://codereview.chromium.org/2407543002/diff/1/src/codec/SkPngCodec.cpp#newcode545 src/codec/SkPngCodec.cpp:545: // FIXME: Can we remove fLinesDecoded and just ...
4 years, 2 months ago (2016-10-10 17:19:58 UTC) #4
scroggo_chromium
https://codereview.chromium.org/2407543002/diff/1/src/codec/SkPngCodec.cpp File src/codec/SkPngCodec.cpp (right): https://codereview.chromium.org/2407543002/diff/1/src/codec/SkPngCodec.cpp#newcode545 src/codec/SkPngCodec.cpp:545: // FIXME: Can we remove fLinesDecoded and just rely ...
4 years, 2 months ago (2016-10-10 18:15:05 UTC) #5
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/2407543002/40001
4 years, 2 months ago (2016-10-10 18:15:12 UTC) #8
commit-bot: I haz the power
4 years, 2 months ago (2016-10-10 18:35:03 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/ff9f7bbef6fdbd2ae7965ff18981aa8df33abd96

Powered by Google App Engine
This is Rietveld 408576698