Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
SkGlyphTestPeer Class Reference

Static Public Member Functions

static void SetGlyph1 (SkGlyph *glyph)
 
static void SetGlyph2 (SkGlyph *glyph)
 
static void SetGlyph (SkGlyph *glyph)
 

Detailed Description

Definition at line 64 of file SkGlyphTest.cpp.

Member Function Documentation

◆ SetGlyph()

static void SkGlyphTestPeer::SetGlyph ( SkGlyph glyph)
inlinestatic

Definition at line 177 of file SkStrikeTest.cpp.

177 {
178 // Tweak the bounds to make them unique based on glyph id.
179 const SkGlyphID uniquify = glyph->getGlyphID();
180 glyph->fAdvanceX = 10;
181 glyph->fAdvanceY = 11;
182 glyph->fLeft = -1 - uniquify;
183 glyph->fTop = -2;
184 glyph->fWidth = 8;
185 glyph->fHeight = 9;
186 glyph->fMaskFormat = SkMask::Format::kA8_Format;
187 }
uint16_t SkGlyphID
Definition SkTypes.h:179
SkGlyphID getGlyphID() const
Definition SkGlyph.h:429
@ kA8_Format
8bits per pixel mask (e.g. antialiasing)
Definition SkMask.h:28

◆ SetGlyph1()

static void SkGlyphTestPeer::SetGlyph1 ( SkGlyph glyph)
inlinestatic

Definition at line 66 of file SkGlyphTest.cpp.

66 {
67 glyph->fAdvanceX = 10;
68 glyph->fAdvanceY = 11;
69 glyph->fLeft = -1;
70 glyph->fTop = -2;
71 glyph->fWidth = 8;
72 glyph->fHeight = 9;
73 glyph->fMaskFormat = SkMask::Format::kA8_Format;
74 }

◆ SetGlyph2()

static void SkGlyphTestPeer::SetGlyph2 ( SkGlyph glyph)
inlinestatic

Definition at line 76 of file SkGlyphTest.cpp.

76 {
77 glyph->fAdvanceX = 10;
78 glyph->fAdvanceY = 11;
79 glyph->fLeft = 0;
80 glyph->fTop = -1;
81 glyph->fWidth = 8;
82 glyph->fHeight = 9;
83 glyph->fMaskFormat = SkMask::Format::kA8_Format;
84 }

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