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

Issue 1254483004: Scanline decoding for wbmp (Closed)

Created:
5 years, 5 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

Scanline decoding for wbmp We are also changing the wbmp to use SkSwizzler. This will allow us to take advantage of the sampling routines that are being implemented in SkSwizzler. The image in this upload came from: https://commons.wikimedia.org/wiki/File:Android_robot.png It is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. BUG=skia: Committed: https://skia.googlesource.com/skia/+/99f567e617b6c5a81e6b822c30ccb0d357db21fc

Patch Set 1 #

Total comments: 17

Patch Set 2 : Use SkSwizzler #

Total comments: 23

Patch Set 3 : Add kBit mode to SkSwizzler #

Total comments: 11

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Added kIndex8 check and test #

Patch Set 6 : Rebase on new design of SkScanlineDecoder #

Total comments: 18

Patch Set 7 : Response to comments #

Total comments: 28

Patch Set 8 : Various fixes #

Total comments: 9

Patch Set 9 : More minor fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -86 lines) Patch
A resources/index8.png View 1 2 3 4 5 6 Binary file 0 comments Download
M src/codec/SkCodec.cpp View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M src/codec/SkCodecPriv.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkCodec_wbmp.h View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
M src/codec/SkCodec_wbmp.cpp View 1 2 3 4 5 6 7 8 5 chunks +152 lines, -75 lines 1 comment Download
M src/codec/SkScanlineDecoder.cpp View 1 2 3 4 5 6 7 4 chunks +15 lines, -4 lines 0 comments Download
M src/codec/SkSwizzler.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 1 2 3 4 5 2 chunks +102 lines, -0 lines 0 comments Download
M tests/CodexTest.cpp View 1 2 3 4 5 6 7 2 chunks +36 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 32 (5 generated)
msarett
Again, no rush
5 years, 5 months ago (2015-07-23 21:26:20 UTC) #2
scroggo
https://codereview.chromium.org/1254483004/diff/1/src/codec/SkCodec_wbmp.cpp File src/codec/SkCodec_wbmp.cpp (right): https://codereview.chromium.org/1254483004/diff/1/src/codec/SkCodec_wbmp.cpp#newcode183 src/codec/SkCodec_wbmp.cpp:183: , fSrcRowBytes(SkAlign8(fCodec->getInfo().width()) >> 3) Maybe add a static helper ...
5 years, 4 months ago (2015-07-27 14:16:45 UTC) #3
emmaleer
Is CodexTest.cpp supposed to be named CodecTest.cpp? https://codereview.chromium.org/1254483004/diff/1/src/codec/SkCodec_wbmp.cpp File src/codec/SkCodec_wbmp.cpp (right): https://codereview.chromium.org/1254483004/diff/1/src/codec/SkCodec_wbmp.cpp#newcode147 src/codec/SkCodec_wbmp.cpp:147: nit: added ...
5 years, 4 months ago (2015-07-27 14:41:37 UTC) #4
msarett
If we're not happy with this, I'm happy to switch us back to not using ...
5 years, 4 months ago (2015-07-27 23:42:31 UTC) #5
scroggo
Please add to the description that you also use the swizzler. (I guess that does ...
5 years, 4 months ago (2015-07-28 14:03:34 UTC) #6
msarett
I added a new mode to the swizzler and new swizzler routines. This should prevent ...
5 years, 4 months ago (2015-07-28 22:22:07 UTC) #7
scroggo
Sorry, I made these comments a while ago and then forgot to publish... https://codereview.chromium.org/1254483004/diff/20001/src/codec/SkSwizzler.cpp File ...
5 years, 4 months ago (2015-07-29 17:47:12 UTC) #8
scroggo
On 2015/07/27 14:41:37, emmaleer wrote: > Is CodexTest.cpp supposed to be named CodecTest.cpp? You'll have ...
5 years, 4 months ago (2015-07-29 17:48:48 UTC) #9
msarett
https://codereview.chromium.org/1254483004/diff/40001/src/codec/SkCodec_wbmp.cpp File src/codec/SkCodec_wbmp.cpp (right): https://codereview.chromium.org/1254483004/diff/40001/src/codec/SkCodec_wbmp.cpp#newcode215 src/codec/SkCodec_wbmp.cpp:215: initializeSwizzler(dstInfo, ctable, options)); On 2015/07/29 17:47:12, scroggo wrote: > ...
5 years, 4 months ago (2015-07-29 18:53:57 UTC) #10
scroggo
https://codereview.chromium.org/1254483004/diff/40001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1254483004/diff/40001/src/codec/SkSwizzler.cpp#newcode38 src/codec/SkSwizzler.cpp:38: dst += 8; On 2015/07/29 18:53:57, msarett wrote: > ...
5 years, 4 months ago (2015-07-29 21:49:17 UTC) #11
msarett
Regardless of whether this is good or not, I'll hold off until you land "Create ...
5 years, 4 months ago (2015-07-29 22:32:58 UTC) #13
scroggo
lgtm
5 years, 4 months ago (2015-07-30 13:44:58 UTC) #14
scroggo
I think this causes a merge conflict, since onGetScanlineDecoder has gone away, but is there ...
5 years, 4 months ago (2015-08-04 17:50:22 UTC) #15
scroggo
On 2015/08/04 17:50:22, scroggo wrote: > I think this causes a merge conflict, since onGetScanlineDecoder ...
5 years, 4 months ago (2015-08-04 17:50:49 UTC) #16
msarett
I know this already has approval, but I'd feel more comfortable if you can take ...
5 years, 4 months ago (2015-08-04 20:03:51 UTC) #17
scroggo
-lgtm See comments inline https://codereview.chromium.org/1254483004/diff/120001/src/codec/SkCodec_wbmp.cpp File src/codec/SkCodec_wbmp.cpp (right): https://codereview.chromium.org/1254483004/diff/120001/src/codec/SkCodec_wbmp.cpp#newcode206 src/codec/SkCodec_wbmp.cpp:206: SkAutoTUnref<SkColorTable> colorTable(NULL); It looks like ...
5 years, 4 months ago (2015-08-04 20:24:12 UTC) #18
scroggo
sorry, that's not lgtm
5 years, 4 months ago (2015-08-04 20:24:22 UTC) #19
msarett
https://codereview.chromium.org/1254483004/diff/120001/src/codec/SkCodec_wbmp.cpp File src/codec/SkCodec_wbmp.cpp (right): https://codereview.chromium.org/1254483004/diff/120001/src/codec/SkCodec_wbmp.cpp#newcode206 src/codec/SkCodec_wbmp.cpp:206: SkAutoTUnref<SkColorTable> colorTable(NULL); On 2015/08/04 20:24:11, scroggo wrote: > It ...
5 years, 4 months ago (2015-08-04 21:21:26 UTC) #20
scroggo
https://codereview.chromium.org/1254483004/diff/120001/src/codec/SkCodec_wbmp.cpp File src/codec/SkCodec_wbmp.cpp (right): https://codereview.chromium.org/1254483004/diff/120001/src/codec/SkCodec_wbmp.cpp#newcode212 src/codec/SkCodec_wbmp.cpp:212: fSwizzler.reset(fCodec->initializeSwizzler(dstInfo, On 2015/08/04 21:21:26, msarett wrote: > On 2015/08/04 ...
5 years, 4 months ago (2015-08-05 14:36:20 UTC) #21
emmaleer
https://codereview.chromium.org/1254483004/diff/140001/src/codec/SkCodec.cpp File src/codec/SkCodec.cpp (right): https://codereview.chromium.org/1254483004/diff/140001/src/codec/SkCodec.cpp#newcode137 src/codec/SkCodec.cpp:137: if (kIndex_8_SkColorType == info.colorType()) { Why would we need ...
5 years, 4 months ago (2015-08-05 15:06:55 UTC) #22
scroggo
https://codereview.chromium.org/1254483004/diff/140001/src/codec/SkCodec.cpp File src/codec/SkCodec.cpp (right): https://codereview.chromium.org/1254483004/diff/140001/src/codec/SkCodec.cpp#newcode137 src/codec/SkCodec.cpp:137: if (kIndex_8_SkColorType == info.colorType()) { On 2015/08/05 15:06:55, emmaleer ...
5 years, 4 months ago (2015-08-05 15:23:16 UTC) #23
msarett
https://codereview.chromium.org/1254483004/diff/120001/src/codec/SkCodec_wbmp.cpp File src/codec/SkCodec_wbmp.cpp (right): https://codereview.chromium.org/1254483004/diff/120001/src/codec/SkCodec_wbmp.cpp#newcode212 src/codec/SkCodec_wbmp.cpp:212: fSwizzler.reset(fCodec->initializeSwizzler(dstInfo, On 2015/08/05 14:36:20, scroggo wrote: > On 2015/08/04 ...
5 years, 4 months ago (2015-08-05 15:29:42 UTC) #24
scroggo
https://codereview.chromium.org/1254483004/diff/140001/src/codec/SkCodec.cpp File src/codec/SkCodec.cpp (right): https://codereview.chromium.org/1254483004/diff/140001/src/codec/SkCodec.cpp#newcode137 src/codec/SkCodec.cpp:137: if (kIndex_8_SkColorType == info.colorType()) { On 2015/08/05 15:29:42, msarett ...
5 years, 4 months ago (2015-08-05 17:55:37 UTC) #25
msarett
https://codereview.chromium.org/1254483004/diff/140001/src/codec/SkCodec.cpp File src/codec/SkCodec.cpp (right): https://codereview.chromium.org/1254483004/diff/140001/src/codec/SkCodec.cpp#newcode137 src/codec/SkCodec.cpp:137: if (kIndex_8_SkColorType == info.colorType()) { On 2015/08/05 17:55:37, scroggo ...
5 years, 4 months ago (2015-08-05 18:50:33 UTC) #28
scroggo
Is the image you're checking in open source? Make sure it's okay to check in. ...
5 years, 4 months ago (2015-08-05 19:35:38 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1254483004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1254483004/220001
5 years, 4 months ago (2015-08-05 19:51:18 UTC) #31
commit-bot: I haz the power
5 years, 4 months ago (2015-08-05 19:58:29 UTC) #32
Message was sent while issue was closed.
Committed patchset #9 (id:220001) as
https://skia.googlesource.com/skia/+/99f567e617b6c5a81e6b822c30ccb0d357db21fc

Powered by Google App Engine
This is Rietveld 408576698