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

Issue 2343253002: Support for color-spaces with multi-stop (texture) gradients (Closed)

Created:
4 years, 3 months ago by Brian Osman
Modified:
4 years, 3 months ago
Reviewers:
bsalomon, f(malita), reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Support for color-spaces with multi-stop (texture) gradients Texture is F16 linear, unless that's not supported. In that case, we pack down to sRGB. Added more test patches to the gamut GM with many stops, to test this case. Now they render correctly. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2343253002 Committed: https://skia.googlesource.com/skia/+/d454609f621471998edc382cdbd25bd2f05f0bde

Patch Set 1 #

Patch Set 2 : New test code, fix buffer overrun #

Patch Set 3 : Formatting cleanup #

Patch Set 4 : Fix bugs: Always init color xform. Include xform in shader key. #

Patch Set 5 : Bug fixes #

Total comments: 20

Patch Set 6 : Review feedback #

Total comments: 1

Patch Set 7 : SkASSERT -> SkDEBUGFAIL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -21 lines) Patch
M gm/gamut.cpp View 1 4 chunks +23 lines, -6 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 4 5 6 11 chunks +120 lines, -14 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 1 2 3 4 5 3 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 19 (10 generated)
Brian Osman
Added some review comments to call out decision making process and explain what's happening here ...
4 years, 3 months ago (2016-09-20 17:29:54 UTC) #8
f(malita)
https://codereview.chromium.org/2343253002/diff/80001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/2343253002/diff/80001/src/effects/gradients/SkGradientShader.cpp#newcode548 src/effects/gradients/SkGradientShader.cpp:548: void SkGradientShaderBase::initLinearBitmap(SkBitmap* bitmap) const { On 2016/09/20 17:29:53, Brian ...
4 years, 3 months ago (2016-09-21 02:51:35 UTC) #9
Brian Osman
Addressed all the little stuff - going to experiment with just using the raster context. ...
4 years, 3 months ago (2016-09-21 13:24:18 UTC) #10
f(malita)
non-GL bits LGTM https://codereview.chromium.org/2343253002/diff/80001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/2343253002/diff/80001/src/effects/gradients/SkGradientShader.cpp#newcode578 src/effects/gradients/SkGradientShader.cpp:578: int nextIndex = (fColorCount == 2) ...
4 years, 3 months ago (2016-09-22 14:05:39 UTC) #11
bsalomon
Do we just wind up creating a second instance of the texture strip atlas for ...
4 years, 3 months ago (2016-09-22 14:16:03 UTC) #12
Brian Osman
On 2016/09/22 14:16:03, bsalomon wrote: > Do we just wind up creating a second instance ...
4 years, 3 months ago (2016-09-22 14:21:46 UTC) #13
bsalomon
On 2016/09/22 14:21:46, Brian Osman wrote: > On 2016/09/22 14:16:03, bsalomon wrote: > > Do ...
4 years, 3 months ago (2016-09-22 15:02:10 UTC) #14
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/2343253002/120001
4 years, 3 months ago (2016-09-22 15:04:55 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 19:32:03 UTC) #19
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/d454609f621471998edc382cdbd25bd2f05f0bde

Powered by Google App Engine
This is Rietveld 408576698