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

Issue 1055743003: Swizzler changes Index8 and 565 (Closed)

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

Description

***Disables swizzles to 565. We may want to enable swizzles to 565 for images that are encoded in a format similar to 565, however, we do not want to take images that decode naturally to kN32 and then convert them to 565. ***Enable swizzles to kIndex_8. For images encoded in a color table format, we suggest that they be decoded to kIndex_8. When we decode, we only allow conversion to kIndex_8 if it matches the suggested color type (except wbmp which seems good as is). ***Modify dm to test images that decode to kIndex_8. BUG=skia:3257 BUG=skia:3440 Committed: https://skia.googlesource.com/skia/+/438b2adefb9e9213e0ddaf0609405d3087a1cf0a

Patch Set 1 #

Total comments: 31

Patch Set 2 : Avoid setting a field to a local variable #

Total comments: 28

Patch Set 3 : Safe fill for unlikely values of row bytes and other minor fixes #

Total comments: 13

Patch Set 4 : Minor fixes - Need to clarify testing plan for dm and Fill() #

Total comments: 6

Patch Set 5 : Enabled kIndex8 testing in dm, Created a test for SkSwizzler::Fill() #

Total comments: 16

Patch Set 6 : Create codec before pushing srcs #

Total comments: 29

Patch Set 7 : Cleaner testing #

Total comments: 18

Patch Set 8 : Improved SwizzlerTest #

Total comments: 12

Patch Set 9 : Gif rewinding that actually works #

Total comments: 8

Patch Set 10 : Using AutoTCallVProc #

Patch Set 11 : Fix windows errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+640 lines, -277 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 6 7 8 3 chunks +42 lines, -4 lines 0 comments Download
M dm/DMSrcSink.h View 1 2 3 4 5 6 2 chunks +10 lines, -3 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +38 lines, -8 lines 0 comments Download
M gyp/tests.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M src/codec/SkCodec_libbmp.h View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M src/codec/SkCodec_libbmp.cpp View 1 2 3 4 5 22 chunks +99 lines, -47 lines 0 comments Download
M src/codec/SkCodec_libgif.h View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -2 lines 0 comments Download
M src/codec/SkCodec_libgif.cpp View 1 2 3 4 5 6 7 8 9 11 chunks +110 lines, -57 lines 0 comments Download
M src/codec/SkCodec_libpng.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 2 3 4 5 9 chunks +67 lines, -27 lines 0 comments Download
M src/codec/SkMaskSwizzler.cpp View 6 chunks +0 lines, -74 lines 0 comments Download
M src/codec/SkSwizzler.h View 1 2 3 4 5 6 7 8 3 chunks +32 lines, -1 line 0 comments Download
M src/codec/SkSwizzler.cpp View 1 2 3 4 5 6 7 8 9 10 12 chunks +86 lines, -45 lines 0 comments Download
M tests/CodexTest.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -1 line 0 comments Download
A tests/SwizzlerTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +112 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (11 generated)
msarett
https://codereview.chromium.org/1055743003/diff/60001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1055743003/diff/60001/dm/DMSrcSink.cpp#newcode79 dm/DMSrcSink.cpp:79: SkAutoTUnref<SkColorTable> colorTable(NULL); I saw what you did for nanobench, ...
5 years, 8 months ago (2015-04-02 17:26:29 UTC) #5
scroggo
https://codereview.chromium.org/1055743003/diff/60001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (left): https://codereview.chromium.org/1055743003/diff/60001/dm/DMSrcSink.cpp#oldcode75 dm/DMSrcSink.cpp:75: SkImageInfo decodeInfo = codec->getInfo().makeColorType(canvasInfo.colorType()); By removing this, we no ...
5 years, 8 months ago (2015-04-02 19:20:31 UTC) #6
msarett
*** Avoid setting a field to a local variable *** Added bug fix for indexed ...
5 years, 8 months ago (2015-04-03 18:01:32 UTC) #7
scroggo
Can you add to the description: BUG=skia:3440 https://codereview.chromium.org/1055743003/diff/60001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (left): https://codereview.chromium.org/1055743003/diff/60001/dm/DMSrcSink.cpp#oldcode75 dm/DMSrcSink.cpp:75: SkImageInfo decodeInfo ...
5 years, 8 months ago (2015-04-06 14:55:12 UTC) #8
msarett
Safe fill for unlikely values of row bytes and other minor fixes https://codereview.chromium.org/1055743003/diff/80001/src/codec/SkCodec_libbmp.cpp File src/codec/SkCodec_libbmp.cpp ...
5 years, 8 months ago (2015-04-06 18:10:56 UTC) #9
scroggo
Adding mtklein@ to review proposal of how to include testing to kIndex8 to DM. https://codereview.chromium.org/1055743003/diff/100001/dm/DMSrcSink.cpp ...
5 years, 8 months ago (2015-04-06 21:26:30 UTC) #11
msarett
Minor fixes Still need to clarify testing plan for dm and Fill() https://codereview.chromium.org/1055743003/diff/100001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp ...
5 years, 8 months ago (2015-04-07 12:36:03 UTC) #12
mtklein
https://codereview.chromium.org/1055743003/diff/100001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1055743003/diff/100001/dm/DMSrcSink.cpp#newcode83 dm/DMSrcSink.cpp:83: if (kIndex_8_SkColorType == decodeInfo.colorType()) { On 2015/04/07 12:36:03, msarett ...
5 years, 8 months ago (2015-04-07 14:26:42 UTC) #13
msarett
Added responses to Mike's comments. Will work on adding Leon's testing suggestion to dm. https://codereview.chromium.org/1055743003/diff/120001/dm/DMSrcSink.cpp ...
5 years, 8 months ago (2015-04-07 16:58:47 UTC) #14
scroggo
https://codereview.chromium.org/1055743003/diff/100001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1055743003/diff/100001/src/codec/SkSwizzler.cpp#newcode451 src/codec/SkSwizzler.cpp:451: for (int32_t row = y; row < dstInfo.height(); row++) ...
5 years, 8 months ago (2015-04-07 17:09:27 UTC) #15
msarett
Enabled kIndex8 testing in dm Created a test for SkSwizzler::Fill() https://codereview.chromium.org/1055743003/diff/100001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1055743003/diff/100001/src/codec/SkSwizzler.cpp#newcode451 ...
5 years, 8 months ago (2015-04-07 20:27:46 UTC) #17
scroggo
https://codereview.chromium.org/1055743003/diff/160001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1055743003/diff/160001/dm/DM.cpp#newcode199 dm/DM.cpp:199: if (path.endsWith(indexExts[i])) { Here's how I imagined this working: ...
5 years, 8 months ago (2015-04-07 21:15:34 UTC) #18
msarett
In the first step of this change, I created an extra codec in push_codec_srcs and ...
5 years, 8 months ago (2015-04-08 13:59:10 UTC) #19
scroggo
https://codereview.chromium.org/1055743003/diff/160001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1055743003/diff/160001/dm/DM.cpp#newcode199 dm/DM.cpp:199: if (path.endsWith(indexExts[i])) { On 2015/04/08 13:59:10, msarett wrote: > ...
5 years, 8 months ago (2015-04-08 17:21:27 UTC) #20
msarett
Improved SwizzlerTest and design of dm test https://codereview.chromium.org/1055743003/diff/160001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1055743003/diff/160001/dm/DM.cpp#newcode199 dm/DM.cpp:199: if (path.endsWith(indexExts[i])) ...
5 years, 8 months ago (2015-04-08 19:35:40 UTC) #21
scroggo
https://codereview.chromium.org/1055743003/diff/180001/tests/SwizzlerTest.cpp File tests/SwizzlerTest.cpp (right): https://codereview.chromium.org/1055743003/diff/180001/tests/SwizzlerTest.cpp#newcode53 tests/SwizzlerTest.cpp:53: colorTable[1] = 0; On 2015/04/08 19:35:40, msarett wrote: > ...
5 years, 8 months ago (2015-04-08 20:37:38 UTC) #22
msarett
Improved SwizzlerTest https://codereview.chromium.org/1055743003/diff/180001/tests/SwizzlerTest.cpp File tests/SwizzlerTest.cpp (right): https://codereview.chromium.org/1055743003/diff/180001/tests/SwizzlerTest.cpp#newcode53 tests/SwizzlerTest.cpp:53: colorTable[1] = 0; On 2015/04/08 20:37:37, scroggo ...
5 years, 8 months ago (2015-04-09 13:02:48 UTC) #23
scroggo
LGTM with nits nit: The description should not have so many columns. (I think git ...
5 years, 8 months ago (2015-04-09 14:53:49 UTC) #24
msarett
CR Still Needed: So it turns out that I never remembered to test rewinding for ...
5 years, 8 months ago (2015-04-09 16:26:32 UTC) #25
scroggo
https://codereview.chromium.org/1055743003/diff/240001/include/core/SkTemplates.h File include/core/SkTemplates.h (right): https://codereview.chromium.org/1055743003/diff/240001/include/core/SkTemplates.h#newcode122 include/core/SkTemplates.h:122: } On 2015/04/09 16:26:32, msarett wrote: > I'm sure ...
5 years, 8 months ago (2015-04-09 17:37:17 UTC) #26
msarett
Using AutoTCallVProc Added comments on ownership of SkStream Added comments explaining use of kN32 in ...
5 years, 8 months ago (2015-04-09 19:21:31 UTC) #27
scroggo
On 2015/04/09 19:21:31, msarett wrote: > Using AutoTCallVProc > > Added comments on ownership of ...
5 years, 8 months ago (2015-04-09 19:23:56 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1055743003/260001
5 years, 8 months ago (2015-04-09 19:25:59 UTC) #30
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/438)
5 years, 8 months ago (2015-04-09 19:30:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1055743003/260002
5 years, 8 months ago (2015-04-09 19:36:27 UTC) #36
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 19:43:15 UTC) #37
Message was sent while issue was closed.
Committed patchset #11 (id:260002) as
https://skia.googlesource.com/skia/+/438b2adefb9e9213e0ddaf0609405d3087a1cf0a

Powered by Google App Engine
This is Rietveld 408576698