diff options
author | Florin Malita <fmalita@chromium.org> | 2017-06-29 11:03:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-29 15:34:47 +0000 |
commit | 9026fe13a751582e58e98f9bf735c18b4719d7fe (patch) | |
tree | 6c3f03fb9be33f18d1d686a10839e096ab030393 /src/core | |
parent | 762466e9fe0478bcf11fba532998e81e33b3069e (diff) |
2pt conical stage for focal-point-outside case
A couple of annoyances here:
1) the prev vector_scale stage is not usable for masking, as NaN values can propagate through
=> switch to actual masking
2) for the outside case, we must select the min root when the gradient is flipped
=> split into two templated stages (_min, _max)
(I'm not convinced that we need to flip the gradient for RP at all; we can investigate later)
Change-Id: I0283812d613a53124f2987d1aea1f26e4533655e
Reviewed-on: https://skia-review.googlesource.com/21162
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkRasterPipeline.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/SkRasterPipeline.h b/src/core/SkRasterPipeline.h index 779883d0e0..f1a3ef70d6 100644 --- a/src/core/SkRasterPipeline.h +++ b/src/core/SkRasterPipeline.h @@ -107,8 +107,10 @@ struct SkJumper_constants; M(evenly_spaced_2_stop_gradient) \ M(xy_to_unit_angle) \ M(xy_to_radius) \ - M(xy_to_2pt_conical_quadratic) M(xy_to_2pt_conical_linear) \ - M(vector_scale) \ + M(xy_to_2pt_conical_quadratic_min) \ + M(xy_to_2pt_conical_quadratic_max) \ + M(xy_to_2pt_conical_linear) \ + M(mask_2pt_conical_degenerates) M(apply_vector_mask) \ M(byte_tables) M(byte_tables_rgb) \ M(rgb_to_hsl) \ M(hsl_to_rgb) |