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

Issue 1386973002: Fix SkGifCodec to handle gifs where frameSize != imageSize (Closed)

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

Description

Fix SkGifCodec to handle gifs where frameSize != imageSize These are quite rare, causing us to miss a few bugs in how we deal with these images. Additionally, there is a behavior change. If the imageSize is not large enough to contain the frame, we will "fix" the image by increasing the image size. SkScaledCodec is still buggy with regard to these gifs. See skbug.com/4421. We will fix that after 1332053002 lands. BUG=skia: Committed: https://skia.googlesource.com/skia/+/4aa02d8e73229aeb13f5de6c6de6f5aef061b0d5

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -103 lines) Patch
M src/codec/SkCodec_libgif.h View 1 2 chunks +14 lines, -8 lines 0 comments Download
M src/codec/SkCodec_libgif.cpp View 1 14 chunks +62 lines, -95 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (8 generated)
msarett
https://codereview.chromium.org/1386973002/diff/60001/src/codec/SkCodec_libgif.cpp File src/codec/SkCodec_libgif.cpp (right): https://codereview.chromium.org/1386973002/diff/60001/src/codec/SkCodec_libgif.cpp#newcode596 src/codec/SkCodec_libgif.cpp:596: SkSwizzler::Fill(dst, this->dstInfo().makeWH(fFrameRect.width(), This will be deleted soon anyway, but ...
5 years, 2 months ago (2015-10-05 20:59:32 UTC) #5
reed1
lgtm https://codereview.chromium.org/1386973002/diff/60001/src/codec/SkCodec_libgif.h File src/codec/SkCodec_libgif.h (right): https://codereview.chromium.org/1386973002/diff/60001/src/codec/SkCodec_libgif.h#newcode98 src/codec/SkCodec_libgif.h:98: static bool SetDimensions(GifFileType* gif, SkISize* size, SkIRect* frameRect); ...
5 years, 2 months ago (2015-10-05 21:08:12 UTC) #7
reed1
not lgtm (per-se)
5 years, 2 months ago (2015-10-05 21:08:23 UTC) #8
reed1
aw heck ... lgtm
5 years, 2 months ago (2015-10-05 21:08:59 UTC) #10
scroggo
lgtm https://codereview.chromium.org/1386973002/diff/60001/src/codec/SkCodec_libgif.h File src/codec/SkCodec_libgif.h (right): https://codereview.chromium.org/1386973002/diff/60001/src/codec/SkCodec_libgif.h#newcode88 src/codec/SkCodec_libgif.h:88: * them if necessary. Hmm, it seems like ...
5 years, 2 months ago (2015-10-06 12:57:37 UTC) #11
msarett
https://codereview.chromium.org/1386973002/diff/60001/src/codec/SkCodec_libgif.h File src/codec/SkCodec_libgif.h (right): https://codereview.chromium.org/1386973002/diff/60001/src/codec/SkCodec_libgif.h#newcode88 src/codec/SkCodec_libgif.h:88: * them if necessary. On 2015/10/06 12:57:37, scroggo wrote: ...
5 years, 2 months ago (2015-10-06 14:39:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1386973002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1386973002/80001
5 years, 2 months ago (2015-10-06 14:39:39 UTC) #15
commit-bot: I haz the power
5 years, 2 months ago (2015-10-06 14:46:05 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://skia.googlesource.com/skia/+/4aa02d8e73229aeb13f5de6c6de6f5aef061b0d5

Powered by Google App Engine
This is Rietveld 408576698