Ah, you're describing using the SkSVGCanvas to create an SVG document,
as opposed to using SkSVG to parse an SVG document and draw it to
pixels. Unfortunately SkSVGCanvas is less used and maintained than
SkSVG. In particular SkSVGDevice (which does the actual work for
SkSVGCanvas) simply streams out the SVG XML as draw calls are made. It
does not create a DOM which could then be later analyzed for
duplicates which could be grouped. Doing so would probably require
restructuring the way the current SkSVGCanvas works. So at the moment
there isn't any simple way to have the output use "use" in any useful
way.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/skia-discuss/c2c451d6-9d44-4a66-8aa2-a316b1121c89n%40googlegroups.com.