skia2/include/effects
Michael Ludwig 7d0f853158 Add SkImageFilters::Shader in place of Paint factory
SkImageFilters::Paint did not use every slot of the SkPaint, with only
its color, alpha, color filter, and shader having a meaningful effect on
the image filter result. It was always blended into a transparent dst,
so blend mode wasn't very relevant, and it was always filled to whatever
required geometry, so stroke style, path effect, and mask filters were
ignored or not well specified.

Color, alpha, and color filter can all be combined into an SkShader, so
a more constrained SkImageFilters::Shader provides the same useful
capabilities without as many surprises.

SkImageFilters::Paint still exists, but is deprecated to be removed
once I've confirmed clients aren't depending on it.

Bug: skia:9310
Change-Id: I11a82bda1a5d440726cf4e2b5bfaae4929568679
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/323680
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2020-10-08 22:51:13 +00:00
..
Sk1DPathEffect.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
Sk2DPathEffect.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SkAlphaThresholdFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkArithmeticImageFilter.h Add comment explaining memset in ArithmeticFPInputs 2020-02-05 20:03:28 +00:00
SkBlurDrawLooper.h Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
SkBlurImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkBlurMaskFilter.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkColorFilterImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkColorMatrix.h SkColorMatrix cleanup 2019-11-04 15:20:15 +00:00
SkColorMatrixFilter.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkComposeImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkCornerPathEffect.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SkDashPathEffect.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkDiscretePathEffect.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SkDisplacementMapEffect.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkDropShadowImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkGradientShader.h Add fiddle example for MakeLinear 2020-03-18 17:53:11 +00:00
SkHighContrastFilter.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkImageFilters.h Add SkImageFilters::Shader in place of Paint factory 2020-10-08 22:51:13 +00:00
SkImageSource.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkLayerDrawLooper.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SkLightingImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkLumaColorFilter.h Move impl into SkColorFilterBase 2020-06-25 00:26:11 +00:00
SkMagnifierImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkMatrixConvolutionImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkMergeImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkMorphologyImageFilter.h Take MorphologyImageFilter radii as SkScalar. 2020-04-09 18:27:17 +00:00
SkOffsetImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkOpPathEffect.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkOverdrawColorFilter.h change Overdraw colorfilter to be pure sksl 2020-04-16 19:15:01 +00:00
SkPaintImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkPerlinNoiseShader.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkPictureImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkRuntimeEffect.h Make some internal runtime effect API private 2020-09-01 14:51:29 +00:00
SkShaderMaskFilter.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkStrokeAndFillPathEffect.h add new patheffect for stroke-and-fill 2020-05-20 15:01:26 +00:00
SkTableColorFilter.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkTableMaskFilter.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkTileImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00
SkTrimPathEffect.h [SkTrimPathEffect] Preserve wrap-around continuity 2020-04-07 14:40:17 +00:00
SkXfermodeImageFilter.h Add new SkImageFilters factory API 2019-08-02 13:33:35 +00:00