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

Issue 204543006: New option for arithmetic mode (Closed)

Created:
6 years, 9 months ago by sugoi1
Modified:
6 years, 8 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Arithmetic mode now has the option of not validating the output color, which will allow multiple arithmetic operations to be done sequentially, without intermediate clamping. This is required for mimicking blink's current behavior. BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=14031

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removed SkValidateImageFilter #

Total comments: 3

Patch Set 3 : Added conditional check instead of suppressing it #

Total comments: 1

Patch Set 4 : Added GenKey() #

Total comments: 5

Patch Set 5 : Added background texture check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -21 lines) Patch
M include/effects/SkArithmeticMode.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/effects/SkArithmeticMode.cpp View 1 2 3 4 19 chunks +51 lines, -20 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
sugoi1
6 years, 9 months ago (2014-03-25 15:32:06 UTC) #1
Stephen White
As discussed, we may not need the separate validating image filter after all. Let's try ...
6 years, 9 months ago (2014-03-25 17:10:14 UTC) #2
sugoi1
https://codereview.chromium.org/204543006/diff/80001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/204543006/diff/80001/src/effects/SkArithmeticMode.cpp#newcode178 src/effects/SkArithmeticMode.cpp:178: dst[i] = SkPackARGB32NoCheck(a, r, g, b); Is this ok ...
6 years, 9 months ago (2014-03-27 19:07:36 UTC) #3
Stephen White
https://codereview.chromium.org/204543006/diff/80001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/204543006/diff/80001/src/effects/SkArithmeticMode.cpp#newcode178 src/effects/SkArithmeticMode.cpp:178: dst[i] = SkPackARGB32NoCheck(a, r, g, b); On 2014/03/27 19:07:36, ...
6 years, 9 months ago (2014-03-27 19:38:16 UTC) #4
Stephen White
+reed
6 years, 9 months ago (2014-03-27 19:38:36 UTC) #5
sugoi1
Ping. https://codereview.chromium.org/204543006/diff/80001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/204543006/diff/80001/src/effects/SkArithmeticMode.cpp#newcode178 src/effects/SkArithmeticMode.cpp:178: dst[i] = SkPackARGB32NoCheck(a, r, g, b); On 2014/03/27 ...
6 years, 8 months ago (2014-04-01 13:42:10 UTC) #6
Stephen White
LGTM. Mike?
6 years, 8 months ago (2014-04-01 14:02:44 UTC) #7
Stephen White
+bsalomon Brian, would you take a look?
6 years, 8 months ago (2014-04-01 20:10:09 UTC) #8
bsalomon
"validate" seems like the wrong verb, "enforce"? https://codereview.chromium.org/204543006/diff/90001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/204543006/diff/90001/src/effects/SkArithmeticMode.cpp#newcode237 src/effects/SkArithmeticMode.cpp:237: class GrGLArithmeticEffect ...
6 years, 8 months ago (2014-04-01 20:18:26 UTC) #9
sugoi1
On 2014/04/01 20:18:26, bsalomon wrote: > "validate" seems like the wrong verb, "enforce"? > > ...
6 years, 8 months ago (2014-04-02 14:25:31 UTC) #10
bsalomon
https://codereview.chromium.org/204543006/diff/110001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/204543006/diff/110001/src/effects/SkArithmeticMode.cpp#newcode407 src/effects/SkArithmeticMode.cpp:407: const GrArithmeticEffect& arith = drawEffect.castEffect<GrArithmeticEffect>(); I think we also ...
6 years, 8 months ago (2014-04-02 15:41:16 UTC) #11
sugoi1
https://codereview.chromium.org/204543006/diff/110001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/204543006/diff/110001/src/effects/SkArithmeticMode.cpp#newcode407 src/effects/SkArithmeticMode.cpp:407: const GrArithmeticEffect& arith = drawEffect.castEffect<GrArithmeticEffect>(); On 2014/04/02 15:41:16, bsalomon ...
6 years, 8 months ago (2014-04-02 16:45:58 UTC) #12
bsalomon
https://codereview.chromium.org/204543006/diff/110001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/204543006/diff/110001/src/effects/SkArithmeticMode.cpp#newcode361 src/effects/SkArithmeticMode.cpp:361: if (backgroundTex) { It affects the code right here.
6 years, 8 months ago (2014-04-02 17:38:28 UTC) #13
sugoi1
https://codereview.chromium.org/204543006/diff/110001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/204543006/diff/110001/src/effects/SkArithmeticMode.cpp#newcode361 src/effects/SkArithmeticMode.cpp:361: if (backgroundTex) { On 2014/04/02 17:38:28, bsalomon wrote: > ...
6 years, 8 months ago (2014-04-02 17:45:35 UTC) #14
Stephen White
On 2014/04/01 20:18:26, bsalomon wrote: > This class needs a GenKey function since it generates ...
6 years, 8 months ago (2014-04-02 18:40:58 UTC) #15
bsalomon
lgtm
6 years, 8 months ago (2014-04-02 18:58:48 UTC) #16
sugoi1
The CQ bit was checked by sugoi@chromium.org
6 years, 8 months ago (2014-04-02 19:14:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/204543006/130001
6 years, 8 months ago (2014-04-02 19:14:22 UTC) #18
commit-bot: I haz the power
6 years, 8 months ago (2014-04-02 19:32:33 UTC) #19
Message was sent while issue was closed.
Change committed as 14031

Powered by Google App Engine
This is Rietveld 408576698