Flutter Engine
The Flutter Engine
|
#include <SkCharToGlyphCache.h>
Public Member Functions | |
SkCharToGlyphCache () | |
~SkCharToGlyphCache () | |
int | count () const |
void | reset () |
int | findGlyphIndex (SkUnichar c) const |
void | insertCharAndGlyph (int index, SkUnichar, SkGlyphID) |
void | addCharAndGlyph (SkUnichar unichar, SkGlyphID glyph) |
Definition at line 17 of file SkCharToGlyphCache.h.
SkCharToGlyphCache::SkCharToGlyphCache | ( | ) |
Definition at line 10 of file SkCharToGlyphCache.cpp.
SkCharToGlyphCache::~SkCharToGlyphCache | ( | ) |
Definition at line 14 of file SkCharToGlyphCache.cpp.
Definition at line 50 of file SkCharToGlyphCache.h.
|
inline |
Definition at line 23 of file SkCharToGlyphCache.h.
Given a unichar, return its glyphID (if the return value is positive), else return ~index of where to insert the computed glyphID.
int result = cache.charToGlyph(unichar); if (result >= 0) { glyphID = result; } else { glyphID = compute_glyph_using_typeface(unichar); cache.insertCharAndGlyph(~result, unichar, glyphID); }
Definition at line 95 of file SkCharToGlyphCache.cpp.
Insert a new char/glyph pair into the cache at the specified index. See charToGlyph() for how to compute the bit-not of the index.
Definition at line 109 of file SkCharToGlyphCache.cpp.
void SkCharToGlyphCache::reset | ( | ) |
Definition at line 16 of file SkCharToGlyphCache.cpp.