class Glyph { public: static skgpu::MaskFormat FormatFromSkGlyph(SkMask::Format format) { switch (format) { case SkMask::kBW_Format: case SkMask::kSDF_Format: // fall through to kA8 -- we store BW and SDF glyphs in our 8-bit cache case SkMask::kA8_Format: return skgpu::MaskFormat::kA8; case SkMask::k3D_Format: return skgpu::MaskFormat::kA8; // ignore the mul and add planes, just use the mask case SkMask::kLCD16_Format: return skgpu::MaskFormat::kA565; case SkMask::kARGB32_Format: return skgpu::MaskFormat::kARGB;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.