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

Issue 2259823005: Return color shader instead of 2-color gradient when color count is 1 (Closed)

Created:
4 years, 4 months ago by fmenozzi
Modified:
4 years, 4 months ago
Reviewers:
f(malita), reed1
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 #

Total comments: 2

Patch Set 2 : Use SkShader::MakeColorShader() #

Total comments: 1

Patch Set 3 : Remove unnecessary #include #

Patch Set 4 : Restore macro for 2-pt conical gradients #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -16 lines) Patch
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 6 chunks +21 lines, -16 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (10 generated)
fmenozzi
Removed seemingly-pointless EXPAND_ONE_COLOR macro when creating gradients with a single color. ptal
4 years, 4 months ago (2016-08-18 18:26:47 UTC) #3
reed1
https://codereview.chromium.org/2259823005/diff/1/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/2259823005/diff/1/src/effects/gradients/SkGradientShader.cpp#newcode772 src/effects/gradients/SkGradientShader.cpp:772: return sk_make_sp<SkColorShader>(colors[0]); SkShader::MakeColorShader(colors[0]) https://codereview.chromium.org/2259823005/diff/1/src/effects/gradients/SkGradientShader.cpp#newcode793 src/effects/gradients/SkGradientShader.cpp:793: return sk_make_sp<SkColorShader>(colors[0]); ditto
4 years, 4 months ago (2016-08-18 19:20:17 UTC) #4
fmenozzi
ptal
4 years, 4 months ago (2016-08-18 19:26:25 UTC) #5
fmenozzi
bump
4 years, 4 months ago (2016-08-18 20:59:41 UTC) #6
reed1
lgtm w/ nit about unneeded include https://codereview.chromium.org/2259823005/diff/20001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/2259823005/diff/20001/src/effects/gradients/SkGradientShader.cpp#newcode14 src/effects/gradients/SkGradientShader.cpp:14: #include "SkColorShader.h" this ...
4 years, 4 months ago (2016-08-18 21:18:24 UTC) #7
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/2259823005/40001
4 years, 4 months ago (2016-08-18 21:22:30 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/da082a5767d7edfd3abe74fc683392422565a606
4 years, 4 months ago (2016-08-18 21:51:03 UTC) #12
reed1
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2257993002/ by reed@google.com. ...
4 years, 4 months ago (2016-08-18 23:13:36 UTC) #13
fmenozzi
Restored EXPAND_1_COLOR macro for 2-pt conical gradients. ptal
4 years, 4 months ago (2016-08-19 14:16:34 UTC) #15
f(malita)
lgtm
4 years, 4 months ago (2016-08-19 14:19:43 UTC) #16
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/2259823005/60001
4 years, 4 months ago (2016-08-19 14:20:50 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 14:51:01 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/e9fd0f8eafb68ff92aab257e9a7429eb29047327

Powered by Google App Engine
This is Rietveld 408576698