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

Issue 1011343003: Enabling ico decoding with use of png and bmp decoders (Closed)

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

Description

Enabling ico decoding with use of png and bmp decoders BUG=skia:3257 NOPRESUBMIT=true Committed: https://skia.googlesource.com/skia/+/9bde918754bc292469d801f156f3b626eb3db780

Patch Set 1 #

Patch Set 2 : Clean up before public review #

Total comments: 26

Patch Set 3 : Provide the user with an option of which ico to decode #

Total comments: 25

Patch Set 4 : onGetScaled dimensions, improved choice of proper ico to decode #

Total comments: 22

Patch Set 5 : Using appropriate Sk data types for array of codecs, removing getOriginalInfo #

Total comments: 16

Patch Set 6 : Minor fixes from last set #

Patch Set 7 : Updated blacklist #

Total comments: 6

Patch Set 8 : Included subset on blacklist #

Patch Set 9 : Return kInvalidConversion for 565, Added cast #

Patch Set 10 : Use 1.0f instead of 1.0 or windows thinks its a double #

Patch Set 11 : Removed additional blacklist items #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -73 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M gyp/codec.gyp View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M include/codec/SkCodec.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M src/codec/SkCodec.cpp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M src/codec/SkCodec_libbmp.h View 1 2 3 4 5 7 chunks +24 lines, -6 lines 0 comments Download
M src/codec/SkCodec_libbmp.cpp View 1 2 3 4 5 6 7 8 14 chunks +158 lines, -58 lines 0 comments Download
A src/codec/SkCodec_libico.h View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
A src/codec/SkCodec_libico.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +254 lines, -0 lines 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 52 (22 generated)
msarett
https://codereview.chromium.org/1011343003/diff/20001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1011343003/diff/20001/include/codec/SkCodec.h#newcode54 include/codec/SkCodec.h:54: const SkImageInfo& getOriginalInfo() { return fInfo; } I made ...
5 years, 9 months ago (2015-03-18 19:53:22 UTC) #2
msarett
https://codereview.chromium.org/1011343003/diff/20001/src/codec/SkCodec_libico.cpp File src/codec/SkCodec_libico.cpp (right): https://codereview.chromium.org/1011343003/diff/20001/src/codec/SkCodec_libico.cpp#newcode203 src/codec/SkCodec_libico.cpp:203: return fEmbeddedCodec->getPixels(dstInfo, dst, dstRowBytes); Forgot to mention: I'm not ...
5 years, 9 months ago (2015-03-18 19:59:25 UTC) #3
msarett
https://codereview.chromium.org/1011343003/diff/20001/src/codec/SkCodec_libbmp.cpp File src/codec/SkCodec_libbmp.cpp (right): https://codereview.chromium.org/1011343003/diff/20001/src/codec/SkCodec_libbmp.cpp#newcode1113 src/codec/SkCodec_libbmp.cpp:1113: case kRGB_565_SkColorType: { Forgot to mention part 2: This ...
5 years, 9 months ago (2015-03-18 20:04:23 UTC) #4
scroggo
https://codereview.chromium.org/1011343003/diff/20001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1011343003/diff/20001/include/codec/SkCodec.h#newcode54 include/codec/SkCodec.h:54: const SkImageInfo& getOriginalInfo() { return fInfo; } On 2015/03/18 ...
5 years, 9 months ago (2015-03-18 21:39:19 UTC) #5
msarett
This patch provides the user with the option of the best ico to decode to. ...
5 years, 9 months ago (2015-03-20 18:35:57 UTC) #6
scroggo
https://codereview.chromium.org/1011343003/diff/40001/src/codec/SkCodec_libico.cpp File src/codec/SkCodec_libico.cpp (right): https://codereview.chromium.org/1011343003/diff/40001/src/codec/SkCodec_libico.cpp#newcode131 src/codec/SkCodec_libico.cpp:131: SkData* data = SkData::NewFromStream(stream, size); SkMemoryStream's constructor will call ...
5 years, 9 months ago (2015-03-20 19:36:01 UTC) #7
msarett
onGetScaled dimensions implemented Improved process for choosing an embedded image decode https://codereview.chromium.org/1011343003/diff/40001/src/codec/SkCodec_libico.cpp File src/codec/SkCodec_libico.cpp (right): ...
5 years, 9 months ago (2015-03-23 12:20:58 UTC) #8
scroggo
https://codereview.chromium.org/1011343003/diff/40001/src/codec/SkCodec_libico.cpp File src/codec/SkCodec_libico.cpp (right): https://codereview.chromium.org/1011343003/diff/40001/src/codec/SkCodec_libico.cpp#newcode136 src/codec/SkCodec_libico.cpp:136: break; On 2015/03/23 12:20:58, msarett wrote: > On 2015/03/20 ...
5 years, 9 months ago (2015-03-23 13:41:25 UTC) #11
msarett
Improved data type for array of codecs Removed getOriginalInfo https://codereview.chromium.org/1011343003/diff/60001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1011343003/diff/60001/include/codec/SkCodec.h#newcode54 include/codec/SkCodec.h:54: ...
5 years, 9 months ago (2015-03-23 19:40:03 UTC) #15
scroggo
https://codereview.chromium.org/1011343003/diff/180001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1011343003/diff/180001/dm/DM.cpp#newcode149 dm/DM.cpp:149: return true;//strcmp(ext, "png") == 0 || strcmp(ext, "PNG") == ...
5 years, 9 months ago (2015-03-23 20:34:51 UTC) #16
msarett
Minor fixes from the last iteration. Also, I verified that the new decoders work properly ...
5 years, 9 months ago (2015-03-24 13:08:37 UTC) #17
msarett
Updated blacklist
5 years, 9 months ago (2015-03-24 13:27:23 UTC) #18
scroggo
lgtm https://codereview.chromium.org/1011343003/diff/180001/src/codec/SkCodec_libico.cpp File src/codec/SkCodec_libico.cpp (right): https://codereview.chromium.org/1011343003/diff/180001/src/codec/SkCodec_libico.cpp#newcode239 src/codec/SkCodec_libico.cpp:239: if (kInvalidConversion == result || kInvalidInput == result) ...
5 years, 9 months ago (2015-03-24 15:24:42 UTC) #19
msarett
Adding subset to blacklist https://codereview.chromium.org/1011343003/diff/220001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1011343003/diff/220001/dm/DM.cpp#newcode149 dm/DM.cpp:149: return strcmp(ext, "png") == 0 ...
5 years, 9 months ago (2015-03-24 16:55:08 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011343003/240001
5 years, 9 months ago (2015-03-24 16:55:39 UTC) #23
commit-bot: I haz the power
Presubmit check for 1011343003-240001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 9 months ago (2015-03-24 16:55:49 UTC) #25
msarett
Adding Derek. Looks like I need someone to check out the API.
5 years, 9 months ago (2015-03-24 16:57:31 UTC) #27
scroggo
Mike can you review the API changes? It only modifies a header file to remove ...
5 years, 9 months ago (2015-03-24 16:58:20 UTC) #29
djsollen
api lgtm
5 years, 9 months ago (2015-03-24 17:25:10 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011343003/240001
5 years, 9 months ago (2015-03-24 17:31:45 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCE-NoGPU-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCE-NoGPU-x86_64-Release-Shared-Trybot/builds/77)
5 years, 9 months ago (2015-03-24 17:35:52 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011343003/260001
5 years, 9 months ago (2015-03-24 19:11:48 UTC) #37
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/82) Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, ...
5 years, 9 months ago (2015-03-24 19:15:33 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011343003/280001
5 years, 9 months ago (2015-03-24 19:19:01 UTC) #42
commit-bot: I haz the power
Committed patchset #10 (id:280001) as https://skia.googlesource.com/skia/+/15bfd075d38e4422a477e22940d06a137f66cc97
5 years, 9 months ago (2015-03-24 19:24:33 UTC) #43
tomhudson
A revert of this CL (patchset #10 id:280001) has been created in https://codereview.chromium.org/1022843005/ by tomhudson@google.com. ...
5 years, 9 months ago (2015-03-24 20:47:17 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011343003/300001
5 years, 9 months ago (2015-03-25 12:20:08 UTC) #47
commit-bot: I haz the power
Presubmit check for 1011343003-300001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 9 months ago (2015-03-25 12:20:17 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011343003/300001
5 years, 9 months ago (2015-03-25 12:22:30 UTC) #51
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 12:27:53 UTC) #52
Message was sent while issue was closed.
Committed patchset #11 (id:300001) as
https://skia.googlesource.com/skia/+/9bde918754bc292469d801f156f3b626eb3db780

Powered by Google App Engine
This is Rietveld 408576698