#include "src/utils/SkCharToGlyphCache.h"
SkCharToGlyphCache::SkCharToGlyphCache() { … }
SkCharToGlyphCache::~SkCharToGlyphCache() { … }
void SkCharToGlyphCache::reset() { … }
constexpr int kSmallCountLimit = …;
constexpr int kMinCountForSlope = …;
static int find_simple(const SkUnichar base[], int count, SkUnichar value) { … }
static int find_with_slope(const SkUnichar base[], int count, SkUnichar value, double denom) { … }
int SkCharToGlyphCache::findGlyphIndex(SkUnichar unichar) const { … }
void SkCharToGlyphCache::insertCharAndGlyph(int index, SkUnichar unichar, SkGlyphID glyph) { … }