skia2/src/svg
Florin Malita 673e87cda9 [svgcanvas] Consolidate constant-Y text positions
When SkBaseDevice switched to drawGlyphRunList(), we lost the ability to
detect a) constant-Y text and b) default-positioned text.

As a result, the emitted SVG contains lots of redundant/repeating glyph
positions.

This CL enhances SVGTextBuilder to detect and consolidate constant-Y
glyph positions.

Also restore a useful whitespace unit test.

Change-Id: I50568aef1955f75898ebab41441ad5fe418dac43
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/228563
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
2019-07-19 18:53:32 +00:00
..
SkSVGCanvas.cpp [SkSVGCanvas] Add flag for converting text to paths 2019-07-19 13:39:11 +00:00
SkSVGDevice.cpp [svgcanvas] Consolidate constant-Y text positions 2019-07-19 18:53:32 +00:00
SkSVGDevice.h [SkSVGCanvas] Add flag for converting text to paths 2019-07-19 13:39:11 +00:00