8 #ifndef SkSVGDOM_DEFINED
9 #define SkSVGDOM_DEFINED
14 #include "include/private/base/SkTemplates.h"
15 #include "modules/skresources/include/SkResources.h"
skia_private::THashMap< SkString, sk_sp< SkSVGNode > > SkSVGIDMapper
Definition: SkSVGIDMapper.h:17
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
Definition: SkRefCnt.h:119
Definition: SkSVGDOM.h:27
sk_sp< SkSVGDOM > make(SkStream &) const
Builder & setResourceProvider(sk_sp< skresources::ResourceProvider >)
Specify a resource provider for loading images etc.
Builder & setFontManager(sk_sp< SkFontMgr >)
Specify a font manager for loading fonts (e.g.
Definition: SkSVGDOM.h:25
const SkSize & containerSize() const
DEPRECATED: use getRoot()->intrinsicSize() to query the root element intrinsic size.
void renderNode(SkCanvas *, SkSVGPresentationContext &, const char *id) const
Render the node with the given id as if it were the only child of the root.
static sk_sp< SkSVGDOM > MakeFromStream(SkStream &str)
Definition: SkSVGDOM.h:49
void render(SkCanvas *) const
sk_sp< SkSVGNode > * findNodeById(const char *id)
SkSVGSVG * getRoot() const
Returns the root (outermost) SVG element.
Definition: SkSVGDOM.h:56
void setContainerSize(const SkSize &)
Specify a "container size" for the SVG dom.
Definition: SkSVGNode.h:95
Definition: SkSVGSVG.h:17
SkStream – abstraction for a source of bytes.
Definition: SkStream.h:29
Definition: SkSVGRenderContext.h:50