8 #ifndef SkSVGOpenTypeSVGDecoder_DEFINED
9 #define SkSVGOpenTypeSVGDecoder_DEFINED
21 static std::unique_ptr<SkOpenTypeSVGDecoder>
Make(
const uint8_t* svg,
size_t svgLength);
24 SkColor foregroundColor, SkSpan<SkColor> palette)
override;
29 size_t fApproximateSize;
Types, consts, functions, and macros for colors.
uint32_t SkColor
32-bit ARGB color value, unpremultiplied.
Definition: SkColor.h:37
uint16_t SkGlyphID
16 bit unsigned integer to hold a glyph index
Definition: SkTypes.h:171
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
Definition: SkOpenTypeSVGDecoder.h:19
Definition: SkSVGDOM.h:25
Definition: SkSVGOpenTypeSVGDecoder.h:19
~SkSVGOpenTypeSVGDecoder() override
bool render(SkCanvas &, int upem, SkGlyphID glyphId, SkColor foregroundColor, SkSpan< SkColor > palette) override
size_t approximateSize() override
Each instance probably owns an SVG DOM.
static std::unique_ptr< SkOpenTypeSVGDecoder > Make(const uint8_t *svg, size_t svgLength)