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

Issue 1134113006: dm changes (Closed)

Created:
5 years, 7 months ago by emmaleeroach
Modified:
5 years, 6 months ago
Reviewers:
msarett, 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

New CodeSrc* draw mode kScanline_Subset_Mode kScanline_Subset_Mode decodes the image in subsets using a scanline decoder. The number of subsets can be specified by changing the constant divisor. The number of subsets is equal to divisor*divisor.

Patch Set 1 #

Patch Set 2 : example file #

Patch Set 3 : dm subset mode #

Total comments: 43

Patch Set 4 : changes after code review #

Total comments: 1

Patch Set 5 : removing samples #

Patch Set 6 : dm subset scanline decoder changes #

Total comments: 19

Patch Set 7 : odd width and height now working and new scanline decoder for each subset #

Patch Set 8 : fixing spacing #

Total comments: 22

Patch Set 9 : updating comments and variable names #

Total comments: 12

Patch Set 10 : removing extraX and extraY variables and moving declarations #

Total comments: 12

Patch Set 11 : Adding currentRow and currentColumn variables #

Patch Set 12 : Looping over row and col #

Total comments: 1

Patch Set 13 : deleting extra whitespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -12 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -9 lines 0 comments Download
M dm/DMSrcSink.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +92 lines, -1 line 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (3 generated)
emmaleeroach
5 years, 7 months ago (2015-05-12 20:09:48 UTC) #2
scroggo
You left out a few pieces that were necessary to get it working. See https://codereview.chromium.org/1129903005 ...
5 years, 7 months ago (2015-05-12 20:41:31 UTC) #3
emmaleeroach
New dm mode which decodes the image in 4 subsets, using a scanline decoder. Also ...
5 years, 7 months ago (2015-05-15 17:07:05 UTC) #4
scroggo
Overall the code looks good. I have made some comments where we can make some ...
5 years, 7 months ago (2015-05-18 14:03:59 UTC) #5
emmaleeroach
I didn't want to include the sample changes, but I forgot to create a new ...
5 years, 7 months ago (2015-05-18 20:04:28 UTC) #6
scroggo
On 2015/05/18 20:04:28, emmaleeroach wrote: > I didn't want to include the sample changes, but ...
5 years, 7 months ago (2015-05-18 20:43:18 UTC) #7
emmaleeroach
I deleted the sample files, and changed my algorithm like ImageSrc's, which is cleaner. Also, ...
5 years, 7 months ago (2015-05-18 22:35:15 UTC) #8
scroggo
Looks much better, with an open question about what the right subset width to use ...
5 years, 7 months ago (2015-05-18 23:02:17 UTC) #10
msarett
The big question for me is if our subset decode test should call skipScanlines(). I ...
5 years, 7 months ago (2015-05-19 14:01:13 UTC) #11
scroggo
Matt, thanks for the good comments. Sorry I had you two duplicating work :( I ...
5 years, 7 months ago (2015-05-19 15:21:41 UTC) #12
emmaleer
I updated the code to work with uneven widths and heights by adjusting the width ...
5 years, 7 months ago (2015-05-21 17:51:13 UTC) #14
scroggo
https://codereview.chromium.org/1134113006/diff/130001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1134113006/diff/130001/dm/DMSrcSink.cpp#newcode172 dm/DMSrcSink.cpp:172: const int subsetWidth = decodeInfo.width()/divisor; nit: From here on ...
5 years, 7 months ago (2015-05-21 19:32:36 UTC) #15
emmaleeroach
I defined new variables currentSubsetWidth = subsetWidth + extraX, and currentSubsetHeight - subsetHeight + extraY, ...
5 years, 7 months ago (2015-05-21 22:17:24 UTC) #16
scroggo
This is looking good. I think after a few more small changes (below) it will ...
5 years, 7 months ago (2015-05-22 14:38:26 UTC) #17
emmaleeroach
I removed extraX and extraY variables, and moved the declarations of some variables to right ...
5 years, 7 months ago (2015-05-22 15:58:55 UTC) #18
msarett
I added a few thoughts. I realize that I'm jumping in kind of late, so ...
5 years, 7 months ago (2015-05-22 17:42:19 UTC) #19
scroggo
On 2015/05/22 17:42:19, msarett wrote: > I added a few thoughts. I realize that I'm ...
5 years, 7 months ago (2015-05-22 18:39:54 UTC) #20
emmaleer
I added currentRow and currentColumn variables to try and make the code cleaner. I check ...
5 years, 7 months ago (2015-05-22 21:55:22 UTC) #21
scroggo
https://codereview.chromium.org/1134113006/diff/170001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1134113006/diff/170001/dm/DMSrcSink.cpp#newcode199 dm/DMSrcSink.cpp:199: if (x + 2*subsetWidth > w) { On 2015/05/22 ...
5 years, 7 months ago (2015-05-26 14:09:34 UTC) #22
emmaleer
Now loops over row and col, and extraX and extraY constants are used. https://codereview.chromium.org/1134113006/diff/170001/dm/DMSrcSink.cpp File ...
5 years, 7 months ago (2015-05-26 19:15:04 UTC) #23
scroggo
> New CodeSrc draw mode kScanline_Subset_Mode nit: CodecSrc* > kScanline_Subset_Mode decodes the image in subsets ...
5 years, 7 months ago (2015-05-26 19:44:30 UTC) #24
scroggo
5 years, 6 months ago (2015-06-11 15:59:25 UTC) #25
On 2015/05/26 19:44:30, scroggo wrote:
> > New CodeSrc draw mode kScanline_Subset_Mode 
> 
> nit: CodecSrc*
> 
> > kScanline_Subset_Mode decodes the image in subsets using a
> > scanline decoder.
> > The number of subsets can be specified by changing the constant divisor.
> > The number of subsets is equal to divisor*divisor.
> 
> nit: Please add a comment about the fix for the png scanline decoder.
> 
> Otherwise, lgtm
> 
> https://codereview.chromium.org/1134113006/diff/210001/dm/DMSrcSink.cpp
> File dm/DMSrcSink.cpp (right):
> 
>
https://codereview.chromium.org/1134113006/diff/210001/dm/DMSrcSink.cpp#newco...
> dm/DMSrcSink.cpp:210: SkScanlineDecoder* subsetScanlineDecoder =
> codec->getScanlineDecoder(decodeInfo,
> nit: Does this go over 100 columns? reitveld looks strange to me; it looks
like
> the line wraps but it does not show anything on the second line. (Is there
> whitespace at the end that takes it over 100 columns?)
> 
> If it's not over 100 characters, just ignore this...

Landed at https://codereview.chromium.org/1157153003

Powered by Google App Engine
This is Rietveld 408576698