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

Issue 666043003: Preventing division by 0 in non-separable blend mode shaders. (Closed)

Created:
6 years, 2 months ago by rosca
Modified:
6 years, 1 month ago
Reviewers:
egdaniel, reed1
CC:
reviews_skia.org, mihnea
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Preventing division by 0 in non-separable blend mode shaders. In the software path, the same issue has been fixed some time ago: https://codereview.chromium.org/114173002 BUG=skia: Committed: https://skia.googlesource.com/skia/+/ace7f4276997235abe559b70620d9f89737d2518

Patch Set 1 #

Total comments: 2

Patch Set 2 : adding a gm test #

Patch Set 3 : moving the test to an existing test file #

Total comments: 4

Patch Set 4 : addressing comments #

Total comments: 4

Patch Set 5 : nits #

Patch Set 6 : adding myself to AUTHORS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -41 lines) Patch
M AUTHORS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M gm/mixedxfermodes.cpp View 1 2 3 4 4 chunks +81 lines, -39 lines 0 comments Download
M src/core/SkXfermode.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (5 generated)
rosca
6 years, 2 months ago (2014-10-21 11:32:36 UTC) #2
reed1
6 years, 2 months ago (2014-10-21 13:23:22 UTC) #4
egdaniel
The divide by zero check looks good. Do you know of any tests or gm's ...
6 years, 2 months ago (2014-10-21 14:24:39 UTC) #5
egdaniel
https://codereview.chromium.org/666043003/diff/1/src/core/SkXfermode.cpp File src/core/SkXfermode.cpp (right): https://codereview.chromium.org/666043003/diff/1/src/core/SkXfermode.cpp#newcode1098 src/core/SkXfermode.cpp:1098: setLumBody.printf("\tfloat diff = %s(lumColor - hueSat);\n", getFunction.c_str()); On 2014/10/21 ...
6 years, 2 months ago (2014-10-21 14:36:26 UTC) #6
rosca
On 2014/10/21 14:24:39, egdaniel wrote: > The divide by zero check looks good. Do you ...
6 years, 2 months ago (2014-10-21 14:42:48 UTC) #7
rosca
On 2014/10/21 14:42:48, rosca wrote: > On 2014/10/21 14:24:39, egdaniel wrote: > > The divide ...
6 years, 1 month ago (2014-11-05 12:16:02 UTC) #8
reed1
can this be tested via a unittest instead of a GM? I ask because it ...
6 years, 1 month ago (2014-11-05 19:30:35 UTC) #9
egdaniel
On 2014/11/05 19:30:35, reed1 wrote: > can this be tested via a unittest instead of ...
6 years, 1 month ago (2014-11-07 19:01:40 UTC) #10
rosca
On 2014/11/07 19:01:40, egdaniel wrote: > On 2014/11/05 19:30:35, reed1 wrote: > > can this ...
6 years, 1 month ago (2014-11-07 19:19:23 UTC) #11
rosca
On 2014/11/07 19:01:40, egdaniel wrote: > On 2014/11/05 19:30:35, reed1 wrote: > > can this ...
6 years, 1 month ago (2014-11-10 15:41:37 UTC) #12
egdaniel
https://codereview.chromium.org/666043003/diff/40001/gm/mixedxfermodes.cpp File gm/mixedxfermodes.cpp (right): https://codereview.chromium.org/666043003/diff/40001/gm/mixedxfermodes.cpp#newcode47 gm/mixedxfermodes.cpp:47: switch (type) { You need to have a default ...
6 years, 1 month ago (2014-11-14 16:08:21 UTC) #13
rosca
Thanks. I uploaded a new patch. https://codereview.chromium.org/666043003/diff/40001/gm/mixedxfermodes.cpp File gm/mixedxfermodes.cpp (right): https://codereview.chromium.org/666043003/diff/40001/gm/mixedxfermodes.cpp#newcode47 gm/mixedxfermodes.cpp:47: switch (type) { ...
6 years, 1 month ago (2014-11-17 16:09:31 UTC) #14
egdaniel
Overall this is looks much better. One issue was that when I try to test ...
6 years, 1 month ago (2014-11-18 14:57:16 UTC) #15
rosca
On 2014/11/18 14:57:16, egdaniel wrote: > Overall this is looks much better. One issue was ...
6 years, 1 month ago (2014-11-18 15:09:53 UTC) #16
egdaniel
Sounds good, yeah that should be a valid way to test the code. Just fix ...
6 years, 1 month ago (2014-11-20 14:34:15 UTC) #17
rosca
Thanks! https://codereview.chromium.org/666043003/diff/60001/gm/mixedxfermodes.cpp File gm/mixedxfermodes.cpp (right): https://codereview.chromium.org/666043003/diff/60001/gm/mixedxfermodes.cpp#newcode48 gm/mixedxfermodes.cpp:48: case kShapeTypeCircle: On 2014/11/20 14:34:15, egdaniel wrote: > ...
6 years, 1 month ago (2014-11-20 14:52:10 UTC) #18
egdaniel
lgtm
6 years, 1 month ago (2014-11-20 14:54:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/666043003/80001
6 years, 1 month ago (2014-11-20 14:55:57 UTC) #21
commit-bot: I haz the power
Presubmit check for 666043003-80001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 1 month ago (2014-11-20 14:56:01 UTC) #23
rosca
On 2014/11/20 14:56:01, I haz the power (commit-bot) wrote: > Presubmit check for 666043003-80001 failed ...
6 years, 1 month ago (2014-11-20 15:09:48 UTC) #24
egdaniel
On 2014/11/20 15:09:48, rosca wrote: > On 2014/11/20 14:56:01, I haz the power (commit-bot) wrote: ...
6 years, 1 month ago (2014-11-20 15:13:25 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/666043003/100001
6 years, 1 month ago (2014-11-20 15:16:07 UTC) #27
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 15:24:37 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/ace7f4276997235abe559b70620d9f89737d2518

Powered by Google App Engine
This is Rietveld 408576698