Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
sktext::gpu::Glyph Class Reference

#include <Glyph.h>

Public Member Functions

 Glyph (SkPackedGlyphID packedGlyphID)
 

Static Public Member Functions

static skgpu::MaskFormat FormatFromSkGlyph (SkMask::Format format)
 

Public Attributes

const SkPackedGlyphID fPackedID
 
skgpu::AtlasLocator fAtlasLocator
 

Detailed Description

Definition at line 17 of file Glyph.h.

Constructor & Destructor Documentation

◆ Glyph()

sktext::gpu::Glyph::Glyph ( SkPackedGlyphID  packedGlyphID)
inline

Definition at line 37 of file Glyph.h.

37: fPackedID(packedGlyphID) {}
const SkPackedGlyphID fPackedID
Definition Glyph.h:39

Member Function Documentation

◆ FormatFromSkGlyph()

static skgpu::MaskFormat sktext::gpu::Glyph::FormatFromSkGlyph ( SkMask::Format  format)
inlinestatic

Definition at line 19 of file Glyph.h.

19 {
20 switch (format) {
23 // fall through to kA8 -- we store BW and SDF glyphs in our 8-bit cache
25 return skgpu::MaskFormat::kA8;
27 return skgpu::MaskFormat::kA8; // ignore the mul and add planes, just use the mask
29 return skgpu::MaskFormat::kA565;
31 return skgpu::MaskFormat::kARGB;
32 }
33
35 }
#define SkUNREACHABLE
Definition SkAssert.h:135
uint32_t uint32_t * format
@ k3D_Format
3 8bit per pixl planes: alpha, mul, add
Definition SkMask.h:29
@ kA8_Format
8bits per pixel mask (e.g. antialiasing)
Definition SkMask.h:28
@ kLCD16_Format
565 alpha for r/g/b
Definition SkMask.h:31
@ kARGB32_Format
SkPMColor.
Definition SkMask.h:30
@ kSDF_Format
8bits representing signed distance field
Definition SkMask.h:32
@ kBW_Format
1bit per pixel mask (e.g. monochrome)
Definition SkMask.h:27

Member Data Documentation

◆ fAtlasLocator

skgpu::AtlasLocator sktext::gpu::Glyph::fAtlasLocator

Definition at line 40 of file Glyph.h.

◆ fPackedID

const SkPackedGlyphID sktext::gpu::Glyph::fPackedID

Definition at line 39 of file Glyph.h.


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