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

Issue 2223203003: Exact Ganesh Gradients for Special Cases (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : Move hard stop code into proper #if block #

Total comments: 6

Patch Set 3 : Brian's suggestions #

Patch Set 4 : Remove calls to setReserve() #

Total comments: 2

Patch Set 5 : Trim columns, remove unused functions, re-align enum fields #

Total comments: 2

Patch Set 6 : Simplify emitUniforms(), whitespace nit #

Patch Set 7 : Rename to determineColorType(), add #if SK_SUPPORT_GPU #

Patch Set 8 : Builds when SK_SUPPORT_GPU is off #

Patch Set 9 : Fix unused function error #

Patch Set 10 : Remove unused field fSubGradients, fix valgrind 'uninitialized value' bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -235 lines) Patch
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +413 lines, -196 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 1 2 3 4 5 6 7 8 9 11 chunks +72 lines, -37 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 48 (24 generated)
fmenozzi
This is the rest of the previous CL, without the generalized subgradient code. ptal
4 years, 4 months ago (2016-08-09 18:00:05 UTC) #3
bsalomon
https://codereview.chromium.org/2223203003/diff/20001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/2223203003/diff/20001/src/effects/gradients/SkGradientShader.cpp#newcode231 src/effects/gradients/SkGradientShader.cpp:231: static inline bool close_to_one_half(const SkFixed& val) { I think ...
4 years, 4 months ago (2016-08-09 19:46:24 UTC) #5
fmenozzi
Added suggestions, ptal https://codereview.chromium.org/2223203003/diff/20001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/2223203003/diff/20001/src/effects/gradients/SkGradientShader.cpp#newcode1338 src/effects/gradients/SkGradientShader.cpp:1338: fAllColors = SkTDArray<SkColor>(shader.fOrigColors, shader.fColorCount); On 2016/08/09 ...
4 years, 4 months ago (2016-08-09 20:45:49 UTC) #6
bsalomon
https://codereview.chromium.org/2223203003/diff/20001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/2223203003/diff/20001/src/effects/gradients/SkGradientShader.cpp#newcode1338 src/effects/gradients/SkGradientShader.cpp:1338: fAllColors = SkTDArray<SkColor>(shader.fOrigColors, shader.fColorCount); On 2016/08/09 20:45:49, fmenozzi wrote: ...
4 years, 4 months ago (2016-08-10 13:18:35 UTC) #7
fmenozzi
Removed calls to setReserve(), ptal
4 years, 4 months ago (2016-08-10 13:30:28 UTC) #8
bsalomon
There are a bunch of lines that exceed 100 cols https://codereview.chromium.org/2223203003/diff/60001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/2223203003/diff/60001/src/effects/gradients/SkGradientShader.cpp#newcode989 ...
4 years, 4 months ago (2016-08-10 14:33:20 UTC) #9
fmenozzi
ptal
4 years, 4 months ago (2016-08-10 15:09:12 UTC) #10
bsalomon
lgtm w/ one whitespace nit and optional suggestion. https://codereview.chromium.org/2223203003/diff/80001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/2223203003/diff/80001/src/effects/gradients/SkGradientShader.cpp#newcode966 src/effects/gradients/SkGradientShader.cpp:966: switch ...
4 years, 4 months ago (2016-08-10 15:17:04 UTC) #11
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/2223203003/100001
4 years, 4 months ago (2016-08-10 15:31:51 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/0c63006b88a16e3418d92852a62771615799839d
4 years, 4 months ago (2016-08-10 15:57:29 UTC) #16
fmenozzi
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2227373004/ by fmenozzi@google.com. ...
4 years, 4 months ago (2016-08-10 19:07:55 UTC) #17
fmenozzi
Fixed paren bug, made one other minor change (add #if SK_SUPPORT_GPU). ptal
4 years, 4 months ago (2016-08-11 13:22:23 UTC) #19
bsalomon
lgtm but can you make sure it compiles when gyp var skia_gpu is set to ...
4 years, 4 months ago (2016-08-11 16:34:41 UTC) #20
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/2223203003/140001
4 years, 4 months ago (2016-08-11 19:11:36 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://skia.googlesource.com/skia/+/99818d69372d29a139935cfe5c379e491432931b
4 years, 4 months ago (2016-08-11 19:32:13 UTC) #25
hal.canary
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2241483003/ by halcanary@google.com. ...
4 years, 4 months ago (2016-08-12 01:07:21 UTC) #26
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/2223203003/160001
4 years, 4 months ago (2016-08-12 13:13:48 UTC) #30
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://skia.googlesource.com/skia/+/2a4959181fc98d5d7ee862e7cd1c7993b3343be6
4 years, 4 months ago (2016-08-12 13:33:56 UTC) #32
hal.canary
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/2245533005/ by halcanary@google.com. ...
4 years, 4 months ago (2016-08-12 19:35:36 UTC) #33
tomhudson
lgtm
4 years, 4 months ago (2016-08-15 13:30:28 UTC) #37
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/2223203003/180001
4 years, 4 months ago (2016-08-15 13:35:43 UTC) #40
commit-bot: I haz the power
Your CL can not be processed by CQ because of: * Failed to parse additional ...
4 years, 4 months ago (2016-08-15 13:35:47 UTC) #42
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/2223203003/180001
4 years, 4 months ago (2016-08-15 13:45:14 UTC) #46
commit-bot: I haz the power
4 years, 4 months ago (2016-08-15 14:03:53 UTC) #48
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://skia.googlesource.com/skia/+/cd9a1d0ec3995ffa0be37fd7f6ec1e194b416818

Powered by Google App Engine
This is Rietveld 408576698