Lines Matching refs:svg
41 #include "modules/svg/include/SkSVGDOM.h"
42 #include "modules/svg/include/SkSVGNode.h"
194 static void init(Source* source, sk_sp<SkSVGDOM> svg) {
195 if (svg->containerSize().isEmpty()) {
196 svg->setContainerSize({1000,1000});
198 source->size = svg->containerSize().toCeil();
199 source->draw = [svg](SkCanvas* canvas) {
200 svg->render(canvas);
465 else if (name.endsWith(".svg")) {
467 if (sk_sp<SkSVGDOM> svg = SkSVGDOM::MakeFromStream(stream)) {
468 init(source, svg);