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

Issue 1489163002: Add currScanline() getter to SkCodec API (Closed)

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

Description

Add currScanline() getter to SkCodec API This is more correct than using nextScanline() for the SkGifCodec scanline decoder (since we will get a strange result in the interlaced case) and is necessary if we want to add scanline decoding to SkIcoCodec. This does not actually fix bugs or change behavior. BUG=skia: Committed: https://skia.googlesource.com/skia/+/cb0d5c940a881ee38f0f95e240b31a9052a4e440

Patch Set 1 #

Total comments: 7

Patch Set 2 : Respond to comments #

Patch Set 3 : Change comments in SkCodec.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -7 lines) Patch
M include/codec/SkCodec.h View 1 2 2 chunks +13 lines, -5 lines 0 comments Download
M src/codec/SkCodec_libgif.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 15 (5 generated)
msarett
https://codereview.chromium.org/1489163002/diff/1/src/codec/SkCodec_libgif.cpp File src/codec/SkCodec_libgif.cpp (left): https://codereview.chromium.org/1489163002/diff/1/src/codec/SkCodec_libgif.cpp#oldcode511 src/codec/SkCodec_libgif.cpp:511: const int currRow = this->INHERITED::nextScanline(); Technically this works... What ...
5 years ago (2015-12-01 23:23:04 UTC) #2
scroggo
lgtm > This is useful for the SkGifCodec scanline decoder and for > SkIcoCodec (if ...
5 years ago (2015-12-02 15:24:41 UTC) #3
msarett
https://codereview.chromium.org/1489163002/diff/1/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1489163002/diff/1/include/codec/SkCodec.h#newcode516 include/codec/SkCodec.h:516: void updateNextScanline(int newY) { fCurrScanline = newY; } On ...
5 years ago (2015-12-02 15:45:06 UTC) #6
scroggo
lgtm
5 years ago (2015-12-02 16:28:30 UTC) #7
msarett
PTAL I changed the comments to reflect a behavior that SkIcoCodec may depend on.
5 years ago (2015-12-02 21:14:59 UTC) #8
scroggo
On 2015/12/02 21:14:59, msarett wrote: > PTAL > > I changed the comments to reflect ...
5 years ago (2015-12-02 21:29:37 UTC) #9
msarett
Derek, can you take a look at the API?
5 years ago (2015-12-03 19:53:30 UTC) #10
djsollen
api lgtm
5 years ago (2015-12-03 20:10:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489163002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489163002/40001
5 years ago (2015-12-03 20:10:41 UTC) #13
commit-bot: I haz the power
5 years ago (2015-12-03 20:23:46 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/cb0d5c940a881ee38f0f95e240b31a9052a4e440

Powered by Google App Engine
This is Rietveld 408576698