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

Issue 1260673002: SkScaledCodec class (Closed)

Created:
5 years, 4 months ago by emmaleer
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

SkScaledCodec class This class does scaling by using a scanlineDecoder. getScanlines and skipScanlines are used for y sampling, the swizzler is used for x sampling this class is currently only working for png and jpeg images I will update other Codec types to work soon For SkJpegCodec to implement width wise swizzling it now uses a swizzler. I ran performance tests on this change. Here are the performance test results: https://docs.google.com/a/google.com/spreadsheets/d/1D7-Q_GXD_dI68LZO005NNvb8Wq2Ee0wEBEPG72671yw/edit?usp=sharing BUG=skia: Committed: https://skia.googlesource.com/skia/+/0944100ac89f797714eeae0cf2875e2335ff52ee Committed: https://skia.googlesource.com/skia/+/d518ea7927f9f4e0ed5b4134d1b4f48243855a47 Committed: https://skia.googlesource.com/skia/+/b157917507d4f7d2651f0aeb566d31603cc02240 Committed: https://skia.googlesource.com/skia/+/8f4ba76742c329bc4d5e1b8ca376d27922bd00b1

Patch Set 1 #

Total comments: 42

Patch Set 2 : use SkWebpCodec native scaling, update comments and spacing #

Total comments: 34

Patch Set 3 : remove setSampleX(), move IsInterlaced() to scanlineDecoder #

Total comments: 14

Patch Set 4 : Works for jpeg images #

Total comments: 37

Patch Set 5 : add helper functions to calculate sampleSize and scaledDimensions #

Total comments: 20

Patch Set 6 : Swizzler and SkScaledCodec use same get_sample_size() function #

Total comments: 20

Patch Set 7 : Merge with master #

Patch Set 8 : fix sample function for 565 images #

Total comments: 21

Patch Set 9 : changing scaleToDimensions() name to nativelyScaleToDimensions() #

Total comments: 18

Patch Set 10 : onGetScaledDimensions checks fCodec for natice scale, update comments #

Total comments: 8

Patch Set 11 : Use SkTAbs, update comments #

Total comments: 6

Patch Set 12 : Partial Native Scale for Jpeg #

Patch Set 13 : Make SkScaledCodec constructor explicit #

Total comments: 19

Patch Set 14 : Update PartialNativeScaling for future reference before removing #

Patch Set 15 : Remove PartialNativeScaling #

Total comments: 18

Patch Set 16 : Add get_row_bytes function to SkJpegCodec #

Total comments: 10

Patch Set 17 : Merge with Master #

Patch Set 18 : Move Jpeg Swizzler to ScanlineDecoder #

Total comments: 14

Patch Set 19 : Reset fSwizzler in onStart #

Total comments: 4

Patch Set 20 : Merge with wmp scanlineDecoder #

Patch Set 21 : Make wbmp swizzle functions work for sampling #

Total comments: 28

Patch Set 22 : Update wbmp swizzling functions #

Total comments: 5

Patch Set 23 : Update wbmp swizzling functions again #

Total comments: 2

Patch Set 24 : Improve wbmp swizzling functions #

Total comments: 2

Patch Set 25 : Fix wbmp 565 failure, update wbmp swizzling functions #

Patch Set 26 : Update DM to handle if SkScaled Codec not supported, merge with master #

Patch Set 27 : Fix error caused by adding to void pointer #

Total comments: 2

Patch Set 28 : Fix void pointer error, make divide and mod more readable #

Patch Set 29 : Fix conversion from float to int error #

Patch Set 30 : Fix sampleSize rounding error by creating SampleSize struct #

Total comments: 8

Patch Set 31 : Replace SampleSize struct with ComputeSampleSize function #

Total comments: 1

Patch Set 32 : Move ComputeSampleSize call inside scaling_supported #

Patch Set 33 : Fix memory overwrite bug in swizzler #

Total comments: 6

Patch Set 34 : Update comment, remove mixing pointer arithmetic with indexing #

Patch Set 35 : Change wbmp swizzling functions to update currByte before assigning dst value #

Patch Set 36 : Stop DM from running large interlaced images on 32-bit Ubuntu GCE bots b/c they are running out of … #

Unified diffs Side-by-side diffs Delta from patch set Stats (+777 lines, -209 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -1 line 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +16 lines, -8 lines 0 comments Download
M gyp/codec.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M include/codec/SkCodec.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -0 lines 0 comments Download
A include/codec/SkScaledCodec.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +70 lines, -0 lines 0 comments Download
M include/codec/SkScanlineDecoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +42 lines, -0 lines 0 comments Download
M src/codec/SkBmpStandardCodec.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkCodec_libgif.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +3 lines, -2 lines 0 comments Download
M src/codec/SkCodec_libpng.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +1 line, -1 line 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 9 chunks +25 lines, -8 lines 0 comments Download
M src/codec/SkCodec_wbmp.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 4 chunks +11 lines, -4 lines 0 comments Download
M src/codec/SkJpegCodec.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -10 lines 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 12 chunks +100 lines, -17 lines 0 comments Download
A src/codec/SkScaledCodec.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +261 lines, -0 lines 0 comments Download
M src/codec/SkSwizzler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3 chunks +18 lines, -9 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 21 chunks +210 lines, -148 lines 0 comments Download
M tools/dm_flags.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 115 (26 generated)
emmaleer
5 years, 4 months ago (2015-07-27 14:17:13 UTC) #2
scroggo
General comment: I love how much simpler this is than putting the sampling inside each ...
5 years, 4 months ago (2015-07-27 15:09:20 UTC) #3
emmaleer
https://codereview.chromium.org/1260673002/diff/1/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1260673002/diff/1/include/codec/SkCodec.h#newcode152 include/codec/SkCodec.h:152: , fScaled(0) On 2015/07/27 15:09:19, scroggo wrote: > nit: ...
5 years, 4 months ago (2015-07-27 18:31:39 UTC) #4
scroggo
https://codereview.chromium.org/1260673002/diff/1/src/codec/SkCodec_libpng.cpp File src/codec/SkCodec_libpng.cpp (right): https://codereview.chromium.org/1260673002/diff/1/src/codec/SkCodec_libpng.cpp#newcode749 src/codec/SkCodec_libpng.cpp:749: if(options.fScaled == false) { On 2015/07/27 18:31:38, emmaleer wrote: ...
5 years, 4 months ago (2015-07-27 19:29:57 UTC) #5
msarett
I'm really excited about how this looks! I think most of my comments are nits ...
5 years, 4 months ago (2015-07-27 20:42:18 UTC) #6
scroggo
https://codereview.chromium.org/1260673002/diff/20001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1260673002/diff/20001/include/codec/SkCodec.h#newcode169 include/codec/SkCodec.h:169: * Used to determine if dstDimensions can be different ...
5 years, 4 months ago (2015-07-27 20:47:24 UTC) #7
emmaleer
https://codereview.chromium.org/1260673002/diff/1/src/codec/SkCodec_libpng.cpp File src/codec/SkCodec_libpng.cpp (right): https://codereview.chromium.org/1260673002/diff/1/src/codec/SkCodec_libpng.cpp#newcode749 src/codec/SkCodec_libpng.cpp:749: if(options.fScaled == false) { On 2015/07/27 19:29:56, scroggo wrote: ...
5 years, 4 months ago (2015-07-28 14:19:17 UTC) #8
scroggo
https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp#newcode15 src/codec/SkScaledCodec.cpp:15: bool isWebp = SkWebpCodec::IsWebp(stream); On 2015/07/28 14:19:16, emmaleer wrote: ...
5 years, 4 months ago (2015-07-28 15:58:10 UTC) #9
msarett
https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp#newcode63 src/codec/SkScaledCodec.cpp:63: int scaledHeight = this->getInfo().height() / sampleY; On 2015/07/28 14:19:16, ...
5 years, 4 months ago (2015-07-28 20:53:11 UTC) #10
emmaleer
https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp#newcode15 src/codec/SkScaledCodec.cpp:15: bool isWebp = SkWebpCodec::IsWebp(stream); On 2015/07/28 15:58:10, scroggo wrote: ...
5 years, 4 months ago (2015-07-29 21:55:08 UTC) #11
msarett
Looks good! Just to write down what we talked about in person about how this ...
5 years, 4 months ago (2015-07-30 13:55:38 UTC) #12
emmaleer
https://codereview.chromium.org/1260673002/diff/40001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/40001/src/codec/SkScaledCodec.cpp#newcode121 src/codec/SkScaledCodec.cpp:121: int sampleY = srcHeight / dstHeight; On 2015/07/29 21:55:08, ...
5 years, 4 months ago (2015-07-30 17:50:39 UTC) #13
scroggo
https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp#newcode115 src/codec/SkScaledCodec.cpp:115: bool isInterlaced = fCodec->isInterlaced(); On 2015/07/29 21:55:08, emmaleer wrote: ...
5 years, 4 months ago (2015-07-30 17:53:02 UTC) #14
scroggo
Sorry, I published my last set of comments late, so you've already addressed many, but ...
5 years, 4 months ago (2015-07-30 18:05:57 UTC) #15
scroggo
https://codereview.chromium.org/1260673002/diff/80001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/80001/src/codec/SkJpegCodec.cpp#newcode426 src/codec/SkJpegCodec.cpp:426: fStorage.reset(fCodec->getInfo().width() * dstInfo.minRowBytes()); We only need to do this ...
5 years, 4 months ago (2015-07-30 18:28:23 UTC) #16
emmaleer
https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/20001/src/codec/SkScaledCodec.cpp#newcode115 src/codec/SkScaledCodec.cpp:115: bool isInterlaced = fCodec->isInterlaced(); On 2015/07/30 17:53:01, scroggo wrote: ...
5 years, 4 months ago (2015-07-30 22:27:56 UTC) #17
msarett
https://codereview.chromium.org/1260673002/diff/80001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/80001/src/codec/SkJpegCodec.cpp#newcode449 src/codec/SkJpegCodec.cpp:449: if (fCodec->fSwizzler) { On 2015/07/30 22:27:56, emmaleer wrote: > ...
5 years, 4 months ago (2015-07-31 12:17:59 UTC) #18
scroggo
https://codereview.chromium.org/1260673002/diff/60001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/60001/src/codec/SkSwizzler.cpp#newcode24 src/codec/SkSwizzler.cpp:24: uint8_t* SK_RESTRICT dst = (uint8_t*) dstRow; On 2015/07/30 22:27:56, ...
5 years, 4 months ago (2015-07-31 13:35:33 UTC) #19
emmaleer
https://codereview.chromium.org/1260673002/diff/60001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/60001/src/codec/SkSwizzler.cpp#newcode24 src/codec/SkSwizzler.cpp:24: uint8_t* SK_RESTRICT dst = (uint8_t*) dstRow; On 2015/07/30 17:53:01, ...
5 years, 4 months ago (2015-07-31 18:41:56 UTC) #20
scroggo
This is looking pretty good. Adding another set of eyes/API check. https://codereview.chromium.org/1260673002/diff/80001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): ...
5 years, 4 months ago (2015-07-31 19:31:59 UTC) #22
emmaleer
Should we commit the DMSrcSink.cpp changes? Or should we add separate tests to test SkScaledCodec ...
5 years, 4 months ago (2015-07-31 20:43:10 UTC) #23
scroggo
On 2015/07/31 20:43:10, emmaleer wrote: > Should we commit the DMSrcSink.cpp changes? > Or should ...
5 years, 4 months ago (2015-07-31 21:11:57 UTC) #24
djsollen
https://codereview.chromium.org/1260673002/diff/160001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1260673002/diff/160001/include/codec/SkCodec.h#newcode55 include/codec/SkCodec.h:55: * This is a suggestion to the user. what ...
5 years, 4 months ago (2015-08-03 13:13:59 UTC) #25
emmaleer
https://codereview.chromium.org/1260673002/diff/140001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/140001/src/codec/SkJpegCodec.cpp#newcode329 src/codec/SkJpegCodec.cpp:329: return fDecoderMgr->returnFalse("could not scale to requested dimensions"); On 2015/07/31 ...
5 years, 4 months ago (2015-08-03 14:29:41 UTC) #26
emmaleer
Leon, I've added a function, best_scaled_dimensions, to compare the native getScaledDimensions return value with SkScaledCodec's ...
5 years, 4 months ago (2015-08-03 14:41:26 UTC) #27
scroggo
> https://codereview.chromium.org/1260673002/diff/160001/include/codec/SkScanlineDecoder.h#newcode85 > include/codec/SkScanlineDecoder.h:85: bool isHardToSample() { > On 2015/08/03 13:13:59, djsollen wrote: > > ...
5 years, 4 months ago (2015-08-03 17:02:55 UTC) #28
emmaleer
https://codereview.chromium.org/1260673002/diff/180001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/180001/src/codec/SkScaledCodec.cpp#newcode50 src/codec/SkScaledCodec.cpp:50: static SkISize best_scaled_dimensions(SkISize origDims, SkISize nativeDims, On 2015/08/03 17:02:55, ...
5 years, 4 months ago (2015-08-03 19:00:40 UTC) #29
scroggo
I thought you were going to make SkScaledCodec do sampling on top of the native ...
5 years, 4 months ago (2015-08-03 19:16:21 UTC) #30
emmaleer
Added partial native scaling functionality to SkJpegCodec https://codereview.chromium.org/1260673002/diff/200001/include/codec/SkScaledCodec.h File include/codec/SkScaledCodec.h (right): https://codereview.chromium.org/1260673002/diff/200001/include/codec/SkScaledCodec.h#newcode76 include/codec/SkScaledCodec.h:76: SkScaledCodec(SkCodec*); On ...
5 years, 4 months ago (2015-08-04 18:56:53 UTC) #31
scroggo
The rest of your changes in this latest CL look good, but I'm hesitant on ...
5 years, 4 months ago (2015-08-04 20:05:21 UTC) #32
msarett
Agreed with Leon. Partial scaling is tricky and shouldn't hold up the rest of this ...
5 years, 4 months ago (2015-08-04 20:39:37 UTC) #33
emmaleer
PartialNativeScaling is removed. https://codereview.chromium.org/1260673002/diff/240001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1260673002/diff/240001/dm/DM.cpp#newcode215 dm/DM.cpp:215: const float scales[] = { 0.1f, ...
5 years, 4 months ago (2015-08-05 14:47:51 UTC) #34
scroggo
https://codereview.chromium.org/1260673002/diff/280001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1260673002/diff/280001/dm/DM.cpp#newcode216 dm/DM.cpp:216: // We test natively supported scales and non natively ...
5 years, 4 months ago (2015-08-05 15:36:01 UTC) #35
msarett
https://codereview.chromium.org/1260673002/diff/280001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1260673002/diff/280001/dm/DM.cpp#newcode218 dm/DM.cpp:218: 0.625f, 0.7f, 0.750f, 0.8f, 0.875f, 0.9f, 1.0f }; Per ...
5 years, 4 months ago (2015-08-05 15:54:56 UTC) #36
emmaleer
https://codereview.chromium.org/1260673002/diff/280001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1260673002/diff/280001/dm/DM.cpp#newcode216 dm/DM.cpp:216: // We test natively supported scales and non natively ...
5 years, 4 months ago (2015-08-05 18:41:52 UTC) #37
scroggo
I have a couple of small comments, but this 1gtm. Go ahead and merge with ...
5 years, 4 months ago (2015-08-05 19:10:04 UTC) #38
emmaleer
Jpeg Swizzler is now in the ScanlineDecoder instead of SkJpegCodec. https://codereview.chromium.org/1260673002/diff/280001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/280001/src/codec/SkJpegCodec.cpp#newcode223 ...
5 years, 4 months ago (2015-08-06 13:45:46 UTC) #39
msarett
https://codereview.chromium.org/1260673002/diff/300001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1260673002/diff/300001/dm/DM.cpp#newcode219 dm/DM.cpp:219: const float scales[] = { 0.1f, 0.125f, 0.166f, 0.2f, ...
5 years, 4 months ago (2015-08-06 14:08:59 UTC) #40
scroggo
https://codereview.chromium.org/1260673002/diff/300001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1260673002/diff/300001/dm/DM.cpp#newcode219 dm/DM.cpp:219: const float scales[] = { 0.1f, 0.125f, 0.166f, 0.2f, ...
5 years, 4 months ago (2015-08-06 15:09:11 UTC) #41
emmaleer
https://codereview.chromium.org/1260673002/diff/340001/gyp/codec.gyp File gyp/codec.gyp (right): https://codereview.chromium.org/1260673002/diff/340001/gyp/codec.gyp#newcode50 gyp/codec.gyp:50: '../src/codec/SkWebpCodec.cpp' On 2015/08/06 15:09:10, scroggo wrote: > nit: typically ...
5 years, 4 months ago (2015-08-06 18:59:53 UTC) #42
scroggo
lgtm https://codereview.chromium.org/1260673002/diff/340001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/340001/src/codec/SkJpegCodec.cpp#newcode478 src/codec/SkJpegCodec.cpp:478: if (this->initializeSwizzler(dstInfo, options) != SkCodec::kSuccess) { On 2015/08/06 ...
5 years, 4 months ago (2015-08-06 20:38:00 UTC) #43
emmaleer
I had to change the wbmp swizzling functions quite a bit to make them work ...
5 years, 4 months ago (2015-08-07 18:38:56 UTC) #44
scroggo
On 2015/08/07 18:38:56, emmaleer wrote: > I had to change the wbmp swizzling functions quite ...
5 years, 4 months ago (2015-08-07 19:39:49 UTC) #45
emmaleer
https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp#newcode45 src/codec/SkSwizzler.cpp:45: void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, ...
5 years, 4 months ago (2015-08-11 20:10:36 UTC) #46
scroggo
Still lgtm. Matt, could you look over the bit swizzling functions? https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): ...
5 years, 4 months ago (2015-08-11 21:33:31 UTC) #47
emmaleer
https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp#newcode45 src/codec/SkSwizzler.cpp:45: void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, ...
5 years, 4 months ago (2015-08-12 14:04:34 UTC) #48
scroggo
https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp#newcode61 src/codec/SkSwizzler.cpp:61: currByte = src[0]; On 2015/08/12 14:04:33, emmaleer wrote: > ...
5 years, 4 months ago (2015-08-12 14:35:23 UTC) #49
msarett
https://codereview.chromium.org/1260673002/diff/420001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/420001/src/codec/SkSwizzler.cpp#newcode99 src/codec/SkSwizzler.cpp:99: if (deltaSrc == sample) { On 2015/08/12 14:04:33, emmaleer ...
5 years, 4 months ago (2015-08-12 14:37:41 UTC) #50
emmaleer
The wbmp swizzling functions now use your idea Leon. I think this way will improve ...
5 years, 4 months ago (2015-08-12 15:08:44 UTC) #51
scroggo
https://codereview.chromium.org/1260673002/diff/460001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/460001/src/codec/SkSwizzler.cpp#newcode56 src/codec/SkSwizzler.cpp:56: while (x < dstWidth) { Now these look even ...
5 years, 4 months ago (2015-08-12 15:24:49 UTC) #52
djsollen
api lgtm
5 years, 4 months ago (2015-08-12 17:48:12 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260673002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260673002/500001
5 years, 4 months ago (2015-08-12 20:55:54 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/2611)
5 years, 4 months ago (2015-08-12 20:58:31 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260673002/520001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260673002/520001
5 years, 4 months ago (2015-08-12 21:41:29 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/2638)
5 years, 4 months ago (2015-08-12 21:43:11 UTC) #63
scroggo
https://codereview.chromium.org/1260673002/diff/520001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/520001/src/codec/SkScaledCodec.cpp#newcode195 src/codec/SkScaledCodec.cpp:195: dstRow += rowBytes; You could also do: dstRow = ...
5 years, 4 months ago (2015-08-12 21:49:26 UTC) #64
mtklein
https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp#newcode52 src/codec/SkSwizzler.cpp:52: src += offset / 8; On 2015/08/07 19:39:48, scroggo ...
5 years, 4 months ago (2015-08-12 21:51:11 UTC) #66
emmaleer
https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp#newcode52 src/codec/SkSwizzler.cpp:52: src += offset / 8; On 2015/08/12 21:51:11, mtklein ...
5 years, 4 months ago (2015-08-12 22:19:20 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260673002/540001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260673002/540001
5 years, 4 months ago (2015-08-12 22:19:42 UTC) #70
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/2613) Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, ...
5 years, 4 months ago (2015-08-12 22:23:11 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260673002/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260673002/560001
5 years, 4 months ago (2015-08-12 22:41:05 UTC) #75
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/2560)
5 years, 4 months ago (2015-08-12 22:48:16 UTC) #77
emmaleer
Leon and Matt, could you review this change before I commit again? There was an ...
5 years, 4 months ago (2015-08-13 15:30:47 UTC) #78
msarett
Looks good to me. https://codereview.chromium.org/1260673002/diff/580001/include/codec/SkScaledCodec.h File include/codec/SkScaledCodec.h (right): https://codereview.chromium.org/1260673002/diff/580001/include/codec/SkScaledCodec.h#newcode45 include/codec/SkScaledCodec.h:45: static int getScaledDimension(int srcDimension, int ...
5 years, 4 months ago (2015-08-13 15:45:10 UTC) #79
scroggo
https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/400001/src/codec/SkSwizzler.cpp#newcode52 src/codec/SkSwizzler.cpp:52: src += offset / 8; On 2015/08/12 22:19:20, emmaleer ...
5 years, 4 months ago (2015-08-13 16:10:45 UTC) #80
emmaleer
https://codereview.chromium.org/1260673002/diff/580001/include/codec/SkScaledCodec.h File include/codec/SkScaledCodec.h (right): https://codereview.chromium.org/1260673002/diff/580001/include/codec/SkScaledCodec.h#newcode45 include/codec/SkScaledCodec.h:45: static int getScaledDimension(int srcDimension, int sampleSize) { On 2015/08/13 ...
5 years, 4 months ago (2015-08-13 17:49:11 UTC) #81
scroggo
lgtm https://codereview.chromium.org/1260673002/diff/580001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1260673002/diff/580001/src/codec/SkScaledCodec.cpp#newcode97 src/codec/SkScaledCodec.cpp:97: static bool scaling_supported(const SkScaledCodec::SampleSize& sampleSize, On 2015/08/13 17:49:11, ...
5 years, 4 months ago (2015-08-13 18:01:21 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260673002/600001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260673002/600001
5 years, 4 months ago (2015-08-13 18:02:55 UTC) #85
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260673002/620001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260673002/620001
5 years, 4 months ago (2015-08-13 18:18:37 UTC) #89
commit-bot: I haz the power
Committed patchset #32 (id:620001) as https://skia.googlesource.com/skia/+/0944100ac89f797714eeae0cf2875e2335ff52ee
5 years, 4 months ago (2015-08-13 18:27:02 UTC) #90
emmaleer
A revert of this CL (patchset #32 id:620001) has been created in https://codereview.chromium.org/1294593002/ by emmaleer@google.com. ...
5 years, 4 months ago (2015-08-13 18:35:07 UTC) #91
emmaleer
There was a memory overwrite bug in the swizzler, in the function swizzler_index_to_index. Src was ...
5 years, 4 months ago (2015-08-13 19:37:12 UTC) #92
scroggo
A couple small nits on the latest patch set, but they're not too big of ...
5 years, 4 months ago (2015-08-13 19:44:44 UTC) #93
emmaleer
https://codereview.chromium.org/1260673002/diff/640001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1260673002/diff/640001/src/codec/SkSwizzler.cpp#newcode169 src/codec/SkSwizzler.cpp:169: SkASSERT(0 == offset); On 2015/08/13 19:44:44, scroggo wrote: > ...
5 years, 4 months ago (2015-08-13 19:58:40 UTC) #94
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260673002/660001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260673002/660001
5 years, 4 months ago (2015-08-13 19:59:10 UTC) #97
commit-bot: I haz the power
Committed patchset #34 (id:660001) as https://skia.googlesource.com/skia/+/d518ea7927f9f4e0ed5b4134d1b4f48243855a47
5 years, 4 months ago (2015-08-13 20:07:08 UTC) #98
emmaleer
A revert of this CL (patchset #34 id:660001) has been created in https://codereview.chromium.org/1294613002/ by emmaleer@google.com. ...
5 years, 4 months ago (2015-08-13 20:25:34 UTC) #99
rmistry
On 2015/08/13 20:25:34, emmaleer wrote: > A revert of this CL (patchset #34 id:660001) has ...
5 years, 4 months ago (2015-08-13 22:37:10 UTC) #100
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260673002/680001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260673002/680001
5 years, 4 months ago (2015-08-14 12:38:45 UTC) #103
commit-bot: I haz the power
Committed patchset #35 (id:680001) as https://skia.googlesource.com/skia/+/b157917507d4f7d2651f0aeb566d31603cc02240
5 years, 4 months ago (2015-08-14 12:46:16 UTC) #104
egdaniel
A revert of this CL (patchset #35 id:680001) has been created in https://codereview.chromium.org/1285173003/ by egdaniel@google.com. ...
5 years, 4 months ago (2015-08-14 13:37:23 UTC) #105
mtklein
On 2015/08/14 13:37:23, egdaniel wrote: > A revert of this CL (patchset #35 id:680001) has ...
5 years, 4 months ago (2015-08-14 13:44:45 UTC) #106
msarett
Yeah we're happy to do that! We've been debating whether the out of memory errors ...
5 years, 4 months ago (2015-08-14 13:51:26 UTC) #107
mtklein
On 2015/08/14 13:51:26, msarett wrote: > Yeah we're happy to do that! > > We've ...
5 years, 4 months ago (2015-08-14 13:54:38 UTC) #108
mtklein
On 2015/08/14 13:54:38, mtklein wrote: > On 2015/08/14 13:51:26, msarett wrote: > > Yeah we're ...
5 years, 4 months ago (2015-08-14 13:56:11 UTC) #109
emmaleer
The 32-bit Ubuntu GCE bots were running out of memory in DM, when running the ...
5 years, 4 months ago (2015-08-14 14:24:57 UTC) #110
msarett
lgtm
5 years, 4 months ago (2015-08-14 14:27:34 UTC) #111
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260673002/700001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260673002/700001
5 years, 4 months ago (2015-08-14 14:37:57 UTC) #114
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 14:44:50 UTC) #115
Message was sent while issue was closed.
Committed patchset #36 (id:700001) as
https://skia.googlesource.com/skia/+/8f4ba76742c329bc4d5e1b8ca376d27922bd00b1

Powered by Google App Engine
This is Rietveld 408576698