skia2/modules
Tyler Denniston f548a028ce [svg] Implement gradientUnits="objectBoundingBox"
Currently only works properly when filling rects, since that is the only
node that implements bounds computation with this CL.

Summary of changes:

- Scale gradient coords by object bounds when units are
  kObjectBoundingBox.
- Make fGradientUnits protected instead of private.
- Change default value of fGradientUnits to kObjectBoundingBox, which
  is the default according to the spec.
- Change SkSVGNode::onObjectBoundingBox to take a full render context
  instead of length context.
- Implement bounds computation for SkSVGRect, SkSVGContainer and
  SkSVGUse.

Bug: skia:10842
Change-Id: I2e999985e67644e50da7f681fde190bcf4823eec
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/329223
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Tyler Denniston <tdenniston@google.com>
2020-10-27 19:56:28 +00:00
..
audioplayer SFML [1] backed for SkAudioPlayer/Linux 2020-08-18 17:58:55 +00:00
canvaskit Add define to WASM GM build 2020-10-26 20:50:13 +00:00
particles move SkTPin to include/private 2020-10-16 19:45:11 +00:00
pathkit [pathkit] update to build with emsdk 2.0.6 2020-10-08 17:26:32 +00:00
skottie [skottie] Black & White effect 2020-10-27 17:03:40 +00:00
skparagraph Underline decorations with gaps and no text 2020-10-21 19:43:33 +00:00
skplaintexteditor Enable ClangTidy check readability-const-return-type. 2020-08-07 17:42:38 +00:00
skresources move SkTPin to include/private 2020-10-16 19:45:11 +00:00
sksg move SkTPin to include/private 2020-10-16 19:45:11 +00:00
skshaper ICU project: script iterator in SkShaper 2020-10-16 16:08:12 +00:00
svg [svg] Implement gradientUnits="objectBoundingBox" 2020-10-27 19:56:28 +00:00