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

Issue 1267543002: Make SkSwizzler::Fill() support 565 (Closed)

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

Description

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Check if pixel memory is zero initialized #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -5 lines) Patch
M src/codec/SkJpegCodec.cpp View 1 5 chunks +18 lines, -5 lines 1 comment Download
M src/codec/SkSwizzler.cpp View 1 chunk +9 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (4 generated)
msarett
5 years, 4 months ago (2015-07-29 17:11:31 UTC) #3
scroggo
lgtm https://codereview.chromium.org/1267543002/diff/20001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1267543002/diff/20001/src/codec/SkJpegCodec.cpp#newcode358 src/codec/SkJpegCodec.cpp:358: // will be used. Conveniently, these are zeros, ...
5 years, 4 months ago (2015-07-29 17:15:15 UTC) #4
msarett
https://codereview.chromium.org/1267543002/diff/20001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1267543002/diff/20001/src/codec/SkJpegCodec.cpp#newcode358 src/codec/SkJpegCodec.cpp:358: // will be used. Conveniently, these are zeros, which ...
5 years, 4 months ago (2015-07-29 17:29:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267543002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267543002/40001
5 years, 4 months ago (2015-07-29 17:30:03 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001) as https://skia.googlesource.com/skia/+/fdb788cbfcdccac65d8d1f535920c7f2fdba1ead
5 years, 4 months ago (2015-07-29 17:37:32 UTC) #9
scroggo
5 years, 4 months ago (2015-08-03 18:41:25 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1267543002/diff/40001/src/codec/SkJpegCodec.cpp
File src/codec/SkJpegCodec.cpp (right):

https://codereview.chromium.org/1267543002/diff/40001/src/codec/SkJpegCodec.c...
src/codec/SkJpegCodec.cpp:467: const SkCodec::Options&    fOpts;
I missed this when I first reviewed, but mention it in
https://codereview.chromium.org/1267583002/ (which also fixes it) - making this
a reference is not a good idea. We do not know the lifetime of the object passed
in, so we cannot be sure that the Options object we are referring to will still
exist when we need it.

We actually *do* know of an example when this does not work - if the client
called getScanlineDecoder with a NULL Options object, getScanlineDecoder puts
one on the stack and passes it to onGetScanlineDecoder. So as soon as the client
receives the JpegScanlineDecoder, the object they have is no longer valid.

Powered by Google App Engine
This is Rietveld 408576698