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

Issue 1194703002: onGetScanlines and onSkipScanlines for interlaced pngs (Closed)

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

Description

Implemented onGetScanlines and onSkipScanlines for interlaced pngs Modified DM tests to be faster when decoding interlaced pngs BUG=skia: Committed: https://skia.googlesource.com/skia/+/0a4c3cbfd77e11901c66ac29bf1417a42b87fd31

Patch Set 1 #

Total comments: 27

Patch Set 2 : changing variable names for clarity, updating constructor #

Total comments: 2

Patch Set 3 : editing SkPngInterlacedScanlineDecoder's member variables, handling kCouldNotRewind case #

Total comments: 2

Patch Set 4 : casting int to size_t which caused warning #

Patch Set 5 : fixing size_t to int conversion warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -29 lines) Patch
M dm/DMSrcSink.cpp View 1 2 3 4 5 chunks +40 lines, -27 lines 0 comments Download
M src/codec/SkCodec_libpng.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 2 3 4 2 chunks +94 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
emmaleer
https://codereview.chromium.org/1194703002/diff/1/src/codec/SkCodec_libpng.cpp File src/codec/SkCodec_libpng.cpp (right): https://codereview.chromium.org/1194703002/diff/1/src/codec/SkCodec_libpng.cpp#newcode659 src/codec/SkCodec_libpng.cpp:659: fCurrentRow = 0; Should these variables be defined in ...
5 years, 6 months ago (2015-06-18 21:05:41 UTC) #2
msarett
All my comments are nits. This looks good. https://codereview.chromium.org/1194703002/diff/1/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1194703002/diff/1/dm/DMSrcSink.cpp#newcode213 dm/DMSrcSink.cpp:213: char* ...
5 years, 6 months ago (2015-06-19 13:35:54 UTC) #3
emmaleer
https://codereview.chromium.org/1194703002/diff/1/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1194703002/diff/1/dm/DMSrcSink.cpp#newcode213 dm/DMSrcSink.cpp:213: char* buffer = SkNEW_ARRAY(char, h * rowBytes); On 2015/06/19 ...
5 years, 6 months ago (2015-06-19 14:28:08 UTC) #4
scroggo
https://codereview.chromium.org/1194703002/diff/1/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1194703002/diff/1/dm/DMSrcSink.cpp#newcode167 dm/DMSrcSink.cpp:167: bitmap.getAddr(0, 0), decodeInfo.height(), decodeInfo.minRowBytes()); This is a little tricky: ...
5 years, 6 months ago (2015-06-19 15:45:53 UTC) #5
scroggo
https://codereview.chromium.org/1194703002/diff/1/src/codec/SkCodec_libpng.cpp File src/codec/SkCodec_libpng.cpp (right): https://codereview.chromium.org/1194703002/diff/1/src/codec/SkCodec_libpng.cpp#newcode707 src/codec/SkCodec_libpng.cpp:707: fCurrentRow += count; On 2015/06/19 15:45:53, scroggo wrote: > ...
5 years, 6 months ago (2015-06-19 16:00:41 UTC) #6
emmaleer
https://codereview.chromium.org/1194703002/diff/1/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1194703002/diff/1/dm/DMSrcSink.cpp#newcode167 dm/DMSrcSink.cpp:167: bitmap.getAddr(0, 0), decodeInfo.height(), decodeInfo.minRowBytes()); On 2015/06/19 15:45:52, scroggo wrote: ...
5 years, 6 months ago (2015-06-19 22:12:20 UTC) #7
scroggo
https://codereview.chromium.org/1194703002/diff/40001/src/codec/SkCodec_libpng.cpp File src/codec/SkCodec_libpng.cpp (right): https://codereview.chromium.org/1194703002/diff/40001/src/codec/SkCodec_libpng.cpp#newcode675 src/codec/SkCodec_libpng.cpp:675: fRewindNeeded = true; You'll still need to set this ...
5 years, 6 months ago (2015-06-22 14:46:25 UTC) #8
scroggo
lgtm https://codereview.chromium.org/1194703002/diff/40001/src/codec/SkCodec_libpng.cpp File src/codec/SkCodec_libpng.cpp (right): https://codereview.chromium.org/1194703002/diff/40001/src/codec/SkCodec_libpng.cpp#newcode675 src/codec/SkCodec_libpng.cpp:675: fRewindNeeded = true; On 2015/06/22 14:46:25, scroggo wrote: ...
5 years, 6 months ago (2015-06-22 15:02:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1194703002/40001
5 years, 6 months ago (2015-06-22 15:10:02 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/1653)
5 years, 6 months ago (2015-06-22 15:15:34 UTC) #13
emmaleer
casting int to size_t in onGetScanlines, as it caused a warning when I tried to ...
5 years, 6 months ago (2015-06-22 16:57:21 UTC) #14
scroggo
On 2015/06/22 16:57:21, emmaleer wrote: > casting int to size_t in onGetScanlines, as it caused ...
5 years, 6 months ago (2015-06-22 16:59:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1194703002/60001
5 years, 6 months ago (2015-06-22 17:02:00 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/1657)
5 years, 6 months ago (2015-06-22 17:05:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1194703002/80001
5 years, 6 months ago (2015-06-22 17:21:10 UTC) #22
commit-bot: I haz the power
5 years, 6 months ago (2015-06-22 17:40:25 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/0a4c3cbfd77e11901c66ac29bf1417a42b87fd31

Powered by Google App Engine
This is Rietveld 408576698