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

Issue 2319293003: Checking for valid colorType, alphaType, colorSpace in SkCodec (Closed)

Created:
4 years, 3 months ago by msarett
Modified:
4 years, 3 months ago
Reviewers:
scroggo, Brian Osman
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Checking for valid colorType, alphaType, colorSpace in SkCodec * Refactor to share code between SkPngCodec and SkWebpCodec * Didn't end up sharing with SkJpegCodec but did refactor that code a bit * Disallow conversions to F16 with non-linear color spaces * Fail to decode if we fail to create a SkColorSpaceXform (should be an assert soon). We used to fallback on a legacy decode if we failed to create the transform. * A bunch of name changes BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2319293003 Committed: https://skia.googlesource.com/skia/+/7a9900d6d34e437bb24beb5524a1f6488ae138c9 Committed: https://skia.googlesource.com/skia/+/2ecc35ffa5feb56cd088478589ba1e48382b2e1f

Patch Set 1 #

Total comments: 7

Patch Set 2 : Response to comments #

Patch Set 3 : Fix nanobench #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -96 lines) Patch
M bench/ColorCodecBench.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M dm/DMSrcSink.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/android/SkBitmapRegionCodec.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/codec/SkBmpCodec.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkBmpMaskCodec.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkBmpRLECodec.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkBmpStandardCodec.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkCodecPriv.h View 1 2 2 chunks +43 lines, -2 lines 0 comments Download
M src/codec/SkGifCodec.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/codec/SkJpegCodec.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 7 chunks +18 lines, -25 lines 0 comments Download
M src/codec/SkPngCodec.cpp View 1 2 5 chunks +5 lines, -34 lines 0 comments Download
M src/codec/SkRawCodec.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkWebpCodec.cpp View 1 2 chunks +4 lines, -23 lines 0 comments Download
M tests/CodecTest.cpp View 1 chunk +30 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 33 (25 generated)
msarett
https://codereview.chromium.org/2319293003/diff/80001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/2319293003/diff/80001/src/codec/SkJpegCodec.cpp#newcode641 src/codec/SkJpegCodec.cpp:641: // TODO: Can we assert this instead? This can ...
4 years, 3 months ago (2016-09-08 16:01:58 UTC) #11
scroggo
lgtm https://codereview.chromium.org/2319293003/diff/80001/src/android/SkBitmapRegionCodec.cpp File src/android/SkBitmapRegionCodec.cpp (right): https://codereview.chromium.org/2319293003/diff/80001/src/android/SkBitmapRegionCodec.cpp#newcode139 src/android/SkBitmapRegionCodec.cpp:139: sk_sp<SkColorSpace> colorSpace = nullptr; This looks to be ...
4 years, 3 months ago (2016-09-08 16:33:11 UTC) #12
msarett
Also went ahead and added SkASSERTs, Brian's change is about to land. https://codereview.chromium.org/2319293003/diff/80001/src/android/SkBitmapRegionCodec.cpp File src/android/SkBitmapRegionCodec.cpp ...
4 years, 3 months ago (2016-09-08 16:49:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2319293003/100001
4 years, 3 months ago (2016-09-08 17:13:08 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:100001) as https://skia.googlesource.com/skia/+/7a9900d6d34e437bb24beb5524a1f6488ae138c9
4 years, 3 months ago (2016-09-08 17:14:07 UTC) #22
msarett
A revert of this CL (patchset #2 id:100001) has been created in https://codereview.chromium.org/2328663002/ by msarett@google.com. ...
4 years, 3 months ago (2016-09-08 17:54:14 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2319293003/120001
4 years, 3 months ago (2016-09-08 18:54:01 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 18:55:19 UTC) #33
Message was sent while issue was closed.
Committed patchset #3 (id:120001) as
https://skia.googlesource.com/skia/+/2ecc35ffa5feb56cd088478589ba1e48382b2e1f

Powered by Google App Engine
This is Rietveld 408576698