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

Issue 2787113002: Initial conic-gradient() implementation (Closed)

Created:
3 years, 8 months ago by f(malita)
Modified:
3 years, 8 months ago
Reviewers:
Stephen Chennney, fs
CC:
ajuma+watch_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, reed1, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial conic-gradient() implementation Introduce a new Gradient specialization (ConicGradient), and wire it to Skia's SkSweepGradient. Only non-repeating conic gradients are supported for now. Tests based on Lea Verou's excellent https://leaverou.github.io/conic-gradient/. BUG=706973 Review-Url: https://codereview.chromium.org/2787113002 Cr-Commit-Position: refs/heads/master@{#461213} Committed: https://chromium.googlesource.com/chromium/src/+/d25c21ff39a3dfc462ac0bbbb402f8e314acf576

Patch Set 1 #

Patch Set 2 : linux expectations #

Patch Set 3 : silence msvc warning #

Total comments: 8

Patch Set 4 : review #

Patch Set 5 : improved premul interpolation test #

Patch Set 6 : baselines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -37 lines) Patch
A third_party/WebKit/LayoutTests/fast/gradients/conic-gradient.html View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/gradients/conic-gradient-expected.png View 1 2 3 4 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/fast/gradients/conic-gradient-expected.txt View 1 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/gradients/conic-gradient-positioning.html View 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/gradients/conic-gradient-positioning-expected.txt View 1 1 chunk +55 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/gradients/conic-gradient-positioning-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/fast/gradients/conic-gradient-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/fast/gradients/conic-gradient-expected.txt View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/fast/gradients/conic-gradient-positioning-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/fast/gradients/conic-gradient-positioning-expected.txt View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/fast/gradients/conic-gradient-positioning-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/Source/core/css/CSSGradientValue.cpp View 1 2 3 3 chunks +60 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Gradient.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/Gradient.cpp View 1 2 3 3 chunks +54 lines, -7 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 35 (26 generated)
f(malita)
Depends on https://codereview.chromium.org/2785203002/, and still needs non-linux baselines. But other than that, I think it's ...
3 years, 8 months ago (2017-03-30 20:33:00 UTC) #11
fs
LGTM w/ a (trivial) issue and some nits. https://codereview.chromium.org/2787113002/diff/40001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp File third_party/WebKit/Source/core/css/CSSGradientValue.cpp (right): https://codereview.chromium.org/2787113002/diff/40001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp#newcode461 third_party/WebKit/Source/core/css/CSSGradientValue.cpp:461: bool ...
3 years, 8 months ago (2017-03-30 22:09:11 UTC) #12
f(malita)
https://codereview.chromium.org/2787113002/diff/40001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp File third_party/WebKit/Source/core/css/CSSGradientValue.cpp (right): https://codereview.chromium.org/2787113002/diff/40001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp#newcode461 third_party/WebKit/Source/core/css/CSSGradientValue.cpp:461: bool hasHints = false; On 2017/03/30 22:09:11, fs wrote: ...
3 years, 8 months ago (2017-03-31 13:56:23 UTC) #17
fs
https://codereview.chromium.org/2787113002/diff/40001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp File third_party/WebKit/Source/core/css/CSSGradientValue.cpp (right): https://codereview.chromium.org/2787113002/diff/40001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp#newcode1399 third_party/WebKit/Source/core/css/CSSGradientValue.cpp:1399: RefPtr<Gradient> gradient = Gradient::createConic(position, angle); On 2017/03/31 at 13:56:23, ...
3 years, 8 months ago (2017-03-31 14:05:43 UTC) #18
f(malita)
On 2017/03/31 14:05:43, fs wrote: > https://codereview.chromium.org/2787113002/diff/40001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp > File third_party/WebKit/Source/core/css/CSSGradientValue.cpp (right): > > https://codereview.chromium.org/2787113002/diff/40001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp#newcode1399 > ...
3 years, 8 months ago (2017-03-31 14:36:10 UTC) #21
f(malita)
On 2017/03/31 14:36:10, f(malita) wrote: > On 2017/03/31 14:05:43, fs wrote: > > > https://codereview.chromium.org/2787113002/diff/40001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp ...
3 years, 8 months ago (2017-03-31 14:39:00 UTC) #22
fs
On 2017/03/31 at 14:39:00, fmalita wrote: > On 2017/03/31 14:36:10, f(malita) wrote: > > On ...
3 years, 8 months ago (2017-03-31 18:34:30 UTC) #25
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/2787113002/100001
3 years, 8 months ago (2017-03-31 20:33:25 UTC) #32
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 20:42:24 UTC) #35
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/d25c21ff39a3dfc462ac0bbbb402...

Powered by Google App Engine
This is Rietveld 408576698