skia2/modules
Tyler Denniston 0a145b77f7 [svg] Compute and use filter primitive subregion
Spec: https://www.w3.org/TR/SVG11/filters.html#FilterPrimitiveSubRegion

The filter primitive subregion restricts the output of a specific <fe*>
node in a filter DAG. By default it's equal to the union of subregions
of all input filters, or the filter region if no inputs exist. If
x/y/w/h are specified on the <fe*> node, those are used to bound the
primitive subregion instead.

In this CL:
- Implement the computation of the primitive subregion in
  SkSVGFe::resolveFilterSubregion
- Add primitiveUnits to filter context
- Change result registration (by string ID) in filter context to include
  the primitive subregion of that result. This is needed because filters
  referencing previous results need access to those primitive subregions
  to compute the union.

Bug: skia:10841
Change-Id: I66fbb4979e3c65cb5e5cc61f98286ec7ad023438
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344666
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Tyler Denniston <tdenniston@google.com>
2021-01-11 17:42:57 +00:00
..
audioplayer implement SkAudioPLayer for Android 2020-12-15 00:12:48 +00:00
canvaskit Remove Improved Perlin Noise 2021-01-11 15:27:26 +00:00
particles Strip down SkSL::ExternalValues, limit them to functions 2021-01-07 14:28:41 +00:00
pathkit [canvaskit] Update to emsdk 2.0.10 2020-12-14 15:27:28 +00:00
skottie [skottie] Add text colorization GM 2020-12-10 17:10:48 +00:00
skparagraph RTL run broken by text styles crashes SkParagraph 2021-01-07 21:03:01 +00:00
skplaintexteditor Enable ClangTidy check readability-const-return-type. 2020-08-07 17:42:38 +00:00
skresources Make SkBase64 interface less unpleasant. 2021-01-08 20:28:19 +00:00
sksg Work on hiding filter-quality 2020-12-23 17:05:17 +00:00
skshaper Revert "Cache ICU break iterators in SkUnicode_icu" 2021-01-08 02:29:03 +00:00
svg [svg] Compute and use filter primitive subregion 2021-01-11 17:42:57 +00:00