diff options
author | 2017-08-01 16:38:08 -0400 | |
---|---|---|
committer | 2017-08-01 21:03:28 +0000 | |
commit | 5a9a981edf54d203e06adab0909da03343a1c596 (patch) | |
tree | 27fff0d853f596559aef68ba7d3f5e59be8e0d49 /AUTHORS | |
parent | ce06e261e68848ae21cac1052abc16bc07b961bf (diff) |
Tiling support for SkSweepGradient
Expand the sweep gradient definition to include a color stop angular range ([0, 360] by default).
Color stop positions in [0,1] are mapped to this range, and drawing outside is controlled by a
tile mode param.
This is closer to the CSS gradients spec and allows us to use fewer color stops in Blink conic
gradients.
Impl-wise, the remapping is effected after t calculation, and before tiling.
Change-Id: I5d71be01d134404d6eb9d7e2a904ec636b39f855
Reviewed-on: https://skia-review.googlesource.com/27704
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions