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

Issue 2043803002: Gamma sanity checks (Closed)

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

Description

Gamma sanity checks (1) Make load_gammas() return false on invalid gammas. (2) Assert that gamma always exists after loading. (3) Avoid dividing by zero. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2043803002 Committed: https://skia.googlesource.com/skia/+/a4fa4f6eb727e8b97f6d8a58d9fda4aea56bbc75

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M src/core/SkColorSpace.cpp View 1 5 chunks +36 lines, -0 lines 0 comments Download
M src/core/SkColorSpace_Base.h View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
msarett
There's still some checking to do in https://codereview.chromium.org/2038823002/ but I decided to split this off ...
4 years, 6 months ago (2016-06-06 16:20:40 UTC) #7
scroggo
lgtm https://codereview.chromium.org/2043803002/diff/60001/src/core/SkColorSpace.cpp File src/core/SkColorSpace.cpp (right): https://codereview.chromium.org/2043803002/diff/60001/src/core/SkColorSpace.cpp#newcode611 src/core/SkColorSpace.cpp:611: SkColorSpacePrintf("Constant gamma function is nonsense"); It might help ...
4 years, 6 months ago (2016-06-06 17:13:54 UTC) #8
msarett
https://codereview.chromium.org/2043803002/diff/60001/src/core/SkColorSpace.cpp File src/core/SkColorSpace.cpp (right): https://codereview.chromium.org/2043803002/diff/60001/src/core/SkColorSpace.cpp#newcode611 src/core/SkColorSpace.cpp:611: SkColorSpacePrintf("Constant gamma function is nonsense"); On 2016/06/06 17:13:54, scroggo ...
4 years, 6 months ago (2016-06-06 17:25:05 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043803002/80001
4 years, 6 months ago (2016-06-06 17:25:15 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-06 17:40:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043803002/80001
4 years, 6 months ago (2016-06-06 17:41:56 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 17:42:54 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://skia.googlesource.com/skia/+/a4fa4f6eb727e8b97f6d8a58d9fda4aea56bbc75

Powered by Google App Engine
This is Rietveld 408576698