skia2/modules
Tyler Denniston 1f4cd07af8 [svg] Support preserveAspectRatio for images
https://www.w3.org/TR/SVG11/struct.html#ImageElement
https://www.w3.org/TR/SVG11/coords.html#PreserveAspectRatioAttribute

We already had a function to compute the appropriate matrix, and since
we can share the functionality with other elements that establish a new
viewport (including svg, symbol, and a few others), this CL moves the
function to the SVG node base class.

Relevant test for images is struct-image-06.

Bug: skia:10842
Change-Id: I5d6261210d03959e28d0bd7189da7f4ea53abc03
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/366398
Commit-Queue: Tyler Denniston <tdenniston@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
2021-02-05 15:59:10 +00:00
..
audioplayer implement SkAudioPLayer for Android 2020-12-15 00:12:48 +00:00
canvaskit [canvaskit] Deploy 0.23.0 2021-02-04 19:09:15 +00:00
particles Fix particle bug where uniforms are allocated too late 2021-02-03 22:50:28 +00:00
pathkit [canvaskit] Update to emsdk 2.0.10 2020-12-14 15:27:28 +00:00
skottie Update SkRuntimeEffect::Make to take an Options struct. 2021-02-03 18:03:49 +00:00
skparagraph Glyph positions in empty lines (few places had to be fixed) 2021-02-03 23:05:38 +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 More hiding of legacy drawImage calls 2021-01-22 13:53:42 +00:00
skshaper Add SkShaper::PurgeCaches. 2021-01-27 17:50:30 +00:00
svg [svg] Support preserveAspectRatio for images 2021-02-05 15:59:10 +00:00