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

Issue 1267583002: Create a scanline decoder without creating a codec (Closed)

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

Description

Create a scanline decoder without creating a codec Prior to this CL, if a client wanted to decode scanlines, they had to create an SkCodec in order to get an SkScanlineDecoder. This introduces complications if input data is not easily shared between the two objects. Instead, add methods to SkScanlineDecoder for creating a new one from input data, and remove the creation functions from SkCodec. Update DM and tests. Committed: https://skia.googlesource.com/skia/+/1c005e4a38e29d648ecebada25d3a718155043a3

Patch Set 1 #

Patch Set 2 : Fix bugs. #

Total comments: 16

Patch Set 3 : Respond to comments #

Patch Set 4 : Rename reset to start #

Patch Set 5 : Fix line endings. #

Patch Set 6 : Rebase #

Total comments: 1

Patch Set 7 : Unnecessary rebase #

Patch Set 8 : Fix interlaced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -192 lines) Patch
M bench/nanobench.cpp View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M bench/subset/SubsetSingleBench.cpp View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M bench/subset/SubsetTranslateBench.cpp View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M bench/subset/SubsetZoomBench.cpp View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 5 4 chunks +17 lines, -11 lines 0 comments Download
M gyp/codec.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M include/codec/SkCodec.h View 3 chunks +0 lines, -56 lines 0 comments Download
M include/codec/SkScanlineDecoder.h View 1 2 3 6 chunks +69 lines, -3 lines 0 comments Download
M src/codec/SkCodec.cpp View 1 2 3 4 5 1 chunk +0 lines, -19 lines 0 comments Download
M src/codec/SkCodec_libpng.h View 1 chunk +4 lines, -4 lines 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 2 3 4 5 6 7 3 chunks +86 lines, -31 lines 0 comments Download
M src/codec/SkJpegCodec.h View 3 chunks +9 lines, -3 lines 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 2 3 4 5 2 chunks +42 lines, -43 lines 0 comments Download
A src/codec/SkScanlineDecoder.cpp View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download
M tests/CodexTest.cpp View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download

Messages

Total messages: 27 (7 generated)
scroggo_chromium
https://codereview.chromium.org/1267583002/diff/20001/include/codec/SkCodec.h File include/codec/SkCodec.h (left): https://codereview.chromium.org/1267583002/diff/20001/include/codec/SkCodec.h#oldcode226 include/codec/SkCodec.h:226: SkScanlineDecoder* getScanlineDecoder(const SkImageInfo& dstInfo, const Options* options, We could ...
5 years, 4 months ago (2015-07-29 21:41:44 UTC) #2
emmaleer
https://codereview.chromium.org/1267583002/diff/20001/src/codec/SkCodec_libpng.cpp File src/codec/SkCodec_libpng.cpp (right): https://codereview.chromium.org/1267583002/diff/20001/src/codec/SkCodec_libpng.cpp#newcode603 src/codec/SkCodec_libpng.cpp:603: SkCodec::Result onReset(const SkImageInfo& dstInfo, Is reset required to be ...
5 years, 4 months ago (2015-07-29 22:40:48 UTC) #3
msarett
I'm happy with this landing + a few minor comments from Emmalee and myself. I ...
5 years, 4 months ago (2015-07-30 12:58:46 UTC) #4
msarett
Oh I forgot to mention something! I think this is missing some changes to nanobench.cpp ...
5 years, 4 months ago (2015-07-30 13:05:37 UTC) #5
scroggo
On 2015/07/30 12:58:46, msarett wrote: > I'm happy with this landing + a few minor ...
5 years, 4 months ago (2015-07-30 15:11:35 UTC) #7
msarett
Alright I'm sold! "The awkward part about that option is that the single object has ...
5 years, 4 months ago (2015-07-30 15:37:55 UTC) #8
emmaleer
https://codereview.chromium.org/1267583002/diff/20001/src/codec/SkCodec_libpng.cpp File src/codec/SkCodec_libpng.cpp (right): https://codereview.chromium.org/1267583002/diff/20001/src/codec/SkCodec_libpng.cpp#newcode603 src/codec/SkCodec_libpng.cpp:603: SkCodec::Result onReset(const SkImageInfo& dstInfo, On 2015/07/30 15:37:55, msarett wrote: ...
5 years, 4 months ago (2015-07-30 15:49:48 UTC) #9
scroggo
Latest patch set renames reset to start. (Luckily, the two have the same number of ...
5 years, 4 months ago (2015-07-30 16:48:48 UTC) #10
msarett
"Any idea what situation that would be? Maybe inside the scaled codec?" Yes the situation ...
5 years, 4 months ago (2015-07-30 17:43:08 UTC) #11
scroggo
On 2015/07/30 17:43:08, msarett wrote: > "Any idea what situation that would be? Maybe inside ...
5 years, 4 months ago (2015-07-30 18:07:18 UTC) #12
scroggo
Derek, I'll need an API review for this. I know we discussed merging SkCodec and ...
5 years, 4 months ago (2015-07-30 18:09:19 UTC) #13
djsollen
lgtm API lgtm. I'm in favor of the separation that makes each individual operation clear.
5 years, 4 months ago (2015-08-03 13:22:46 UTC) #14
scroggo_chromium
https://codereview.chromium.org/1267583002/diff/100001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1267583002/diff/100001/src/codec/SkJpegCodec.cpp#newcode395 src/codec/SkJpegCodec.cpp:395: , fOpts() The latest patch is a rebase, but ...
5 years, 4 months ago (2015-08-03 18:35:58 UTC) #15
msarett
lgtm
5 years, 4 months ago (2015-08-03 19:21:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267583002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267583002/100001
5 years, 4 months ago (2015-08-04 13:16:28 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/2369)
5 years, 4 months ago (2015-08-04 13:19:59 UTC) #21
scroggo
Emmalee, would you mind looking over my changes to the interlaced scanline decoder? I had ...
5 years, 4 months ago (2015-08-04 15:33:59 UTC) #22
scroggo
On 2015/08/04 15:33:59, scroggo wrote: > Emmalee, would you mind looking over my changes to ...
5 years, 4 months ago (2015-08-04 16:10:34 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267583002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267583002/140001
5 years, 4 months ago (2015-08-04 16:10:47 UTC) #26
commit-bot: I haz the power
5 years, 4 months ago (2015-08-04 16:24:49 UTC) #27
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/1c005e4a38e29d648ecebada25d3a718155043a3

Powered by Google App Engine
This is Rietveld 408576698