#include <SkSVGOpenTypeSVGDecoder.h>
Definition at line 19 of file SkSVGOpenTypeSVGDecoder.h.
◆ ~SkSVGOpenTypeSVGDecoder()
SkSVGOpenTypeSVGDecoder::~SkSVGOpenTypeSVGDecoder |
( |
| ) |
|
|
overridedefault |
◆ approximateSize()
size_t SkSVGOpenTypeSVGDecoder::approximateSize |
( |
| ) |
|
|
overridevirtual |
Each instance probably owns an SVG DOM. The instance may be cached so needs to report how much memory it retains.
Implements SkOpenTypeSVGDecoder.
Definition at line 123 of file SkSVGOpenTypeSVGDecoder.cpp.
123 {
124
125 return fApproximateSize;
126}
◆ Make()
std::unique_ptr< SkOpenTypeSVGDecoder > SkSVGOpenTypeSVGDecoder::Make |
( |
const uint8_t * |
svg, |
|
|
size_t |
svgLength |
|
) |
| |
|
static |
Definition at line 105 of file SkSVGOpenTypeSVGDecoder.cpp.
106 {
109 return nullptr;
110 }
113
114
116 if (!skSvg) {
117 return nullptr;
118 }
119 return std::unique_ptr<SkOpenTypeSVGDecoder>(
121}
static std::unique_ptr< SkMemoryStream > MakeDirect(const void *data, size_t length)
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)
◆ render()
Implements SkOpenTypeSVGDecoder.
Definition at line 128 of file SkSVGOpenTypeSVGDecoder.cpp.
129 {
132
135
137 if (!palette.
empty()) {
139 constexpr const size_t colorStringLen = sizeof("color") - 1;
142
144 }
146 }
147
148 constexpr const size_t glyphStringLen = sizeof("glyph") - 1;
151
152 fSkSvg->
renderNode(&canvas, pctx, glyphIdString);
153 return true;
154}
constexpr SkEnumerate< Iter > SkMakeEnumerate(C &c)
static constexpr int kSkStrAppendU32_MaxSize
char * SkStrAppendU32(char buffer[], uint32_t)
void renderNode(SkCanvas *, SkSVGPresentationContext &, const char *id) const
void setContainerSize(const SkSize &)
void set(SkSVGPropertyState state)
constexpr bool empty() const
SkSVGProperty< SkSVGColorType, true > fColor
SkSVGPresentationAttributes fInherited
const skia_private::THashMap< SkString, SkSVGColorType > * fNamedColors
static constexpr SkSize Make(SkScalar w, SkScalar h)
The documentation for this class was generated from the following files: