Skia
2D Graphics Library
SkSVGOpenTypeSVGDecoder Class Reference

#include <SkSVGOpenTypeSVGDecoder.h>

Inheritance diagram for SkSVGOpenTypeSVGDecoder:

Public Member Functions

size_t approximateSize () override
 Each instance probably owns an SVG DOM. More...
 
bool render (SkCanvas &, int upem, SkGlyphID glyphId, SkColor foregroundColor, SkSpan< SkColor > palette) override
 
 ~SkSVGOpenTypeSVGDecoder () override
 

Static Public Member Functions

static std::unique_ptr< SkOpenTypeSVGDecoderMake (const uint8_t *svg, size_t svgLength)
 

Constructor & Destructor Documentation

◆ ~SkSVGOpenTypeSVGDecoder()

SkSVGOpenTypeSVGDecoder::~SkSVGOpenTypeSVGDecoder ( )
override

Member Function Documentation

◆ 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.

◆ Make()

static std::unique_ptr<SkOpenTypeSVGDecoder> SkSVGOpenTypeSVGDecoder::Make ( const uint8_t *  svg,
size_t  svgLength 
)
static

◆ render()

bool SkSVGOpenTypeSVGDecoder::render ( SkCanvas ,
int  upem,
SkGlyphID  glyphId,
SkColor  foregroundColor,
SkSpan< SkColor palette 
)
overridevirtual

Implements SkOpenTypeSVGDecoder.


The documentation for this class was generated from the following file: