Home
last modified time | relevance | path

Searched refs:SkGlyphCache (Results 1 – 25 of 33) sorted by relevance

12

/external/skia/src/core/
DSkGlyphCache.h34 class SkGlyphCache {
132 static SkGlyphCache* VisitCache(SkTypeface*, const SkDescriptor* desc,
133 bool (*proc)(const SkGlyphCache*, void*),
139 static void AttachCache(SkGlyphCache*);
140 using AttachCacheFunctor = SkFunctionWrapper<void, SkGlyphCache, AttachCache>;
149 static SkGlyphCache* DetachCache(SkTypeface* typeface, const SkDescriptor* desc) { in DetachCache()
160 typedef void (*Visitor)(const SkGlyphCache&, void* context);
171 AutoValidate(const SkGlyphCache* cache) : fCache(cache) { in AutoValidate()
185 const SkGlyphCache* fCache;
217 SkGlyphCache(SkTypeface*, const SkDescriptor*, SkScalerContext*);
[all …]
DSkGlyphCache.cpp38 SkGlyphCache::SkGlyphCache(SkTypeface* typeface, const SkDescriptor* desc, SkScalerContext* ctx) in SkGlyphCache() function in SkGlyphCache
55 SkGlyphCache::~SkGlyphCache() { in ~SkGlyphCache()
65 SkGlyphCache::CharGlyphRec* SkGlyphCache::getCharGlyphRec(PackedUnicharID packedUnicharID) { in getCharGlyphRec()
88 uint16_t SkGlyphCache::unicharToGlyph(SkUnichar charCode) { in unicharToGlyph()
100 SkUnichar SkGlyphCache::glyphToUnichar(uint16_t glyphID) { in glyphToUnichar()
104 unsigned SkGlyphCache::getGlyphCount() const { in getGlyphCount()
108 int SkGlyphCache::countCachedGlyphs() const { in countCachedGlyphs()
114 const SkGlyph& SkGlyphCache::getUnicharAdvance(SkUnichar charCode) { in getUnicharAdvance()
119 const SkGlyph& SkGlyphCache::getGlyphIDAdvance(uint16_t glyphID) { in getGlyphIDAdvance()
127 const SkGlyph& SkGlyphCache::getUnicharMetrics(SkUnichar charCode) { in getUnicharMetrics()
[all …]
DSkGlyphCache_Globals.h37 SkGlyphCache* cache = fHead; in ~SkGlyphCache_Globals()
39 SkGlyphCache* next = cache->fNext; in ~SkGlyphCache_Globals()
47 SkGlyphCache* internalGetHead() const { return fHead; } in internalGetHead()
48 SkGlyphCache* internalGetTail() const;
75 void attachCacheToHead(SkGlyphCache*);
78 void internalDetachCache(SkGlyphCache*);
79 void internalAttachCacheToHead(SkGlyphCache*);
82 SkGlyphCache* fHead;
DSkFindAndPlaceGlyph.h50 SkGlyphCache* cache, ProcessOneGlyph&& processOneGlyph);
72 SkGlyphCache* cache, ProcessOneGlyph&& processOneGlyph);
135 UtfNGlyphFinder(SkGlyphCache* cache) : fCache(cache) { SkASSERT(cache != nullptr); }
148 SkGlyphCache* fCache;
153 Utf8GlyphFinder(SkGlyphCache* cache) : UtfNGlyphFinder(cache) { }
161 Utf16GlyphFinder(SkGlyphCache* cache) : UtfNGlyphFinder(cache) { }
171 Utf32GlyphFinder(SkGlyphCache* cache) : UtfNGlyphFinder(cache) { }
184 GlyphIdGlyphFinder(SkGlyphCache* cache) : fCache(cache) { SkASSERT(cache != nullptr); }
203 SkGlyphCache* fCache;
215 LookupGlyph(SkPaint::TextEncoding encoding, SkGlyphCache* cache)
[all …]
DSkPaint.cpp457 *((SkGlyphCache**)context) = SkGlyphCache::DetachCache(typeface, desc); in DetachDescProc()
494 SkGlyphCache* cache = autoCache.getCache(); in textToGlyphs()
548 SkGlyphCache* cache = autoCache.getCache(); in containsText()
598 SkGlyphCache* cache = autoCache.getCache(); in glyphsToUnichars()
607 static const SkGlyph& sk_getMetrics_utf8_next(SkGlyphCache* cache, in sk_getMetrics_utf8_next()
615 static const SkGlyph& sk_getMetrics_utf16_next(SkGlyphCache* cache, in sk_getMetrics_utf16_next()
623 static const SkGlyph& sk_getMetrics_utf32_next(SkGlyphCache* cache, in sk_getMetrics_utf32_next()
634 static const SkGlyph& sk_getMetrics_glyph_next(SkGlyphCache* cache, in sk_getMetrics_glyph_next()
646 static const SkGlyph& sk_getAdvance_utf8_next(SkGlyphCache* cache, in sk_getAdvance_utf8_next()
654 static const SkGlyph& sk_getAdvance_utf16_next(SkGlyphCache* cache, in sk_getAdvance_utf16_next()
[all …]
DSkTextToPathIter.h14 class SkGlyphCache; variable
22 SkGlyphCache* fCache;
DSkGlyph.h17 class SkGlyphCache; variable
147 friend class SkGlyphCache;
DSkGraphics.cpp66 SkGlyphCache::DumpMemoryStatistics(dump); in DumpMemoryStatistics()
/external/skia/src/gpu/text/
DGrTextUtils.cpp60 SkGlyphCache* cache = blob->setupCache(runIndex, props, SkPaint::FakeGamma::On, in DrawBmpText()
77 SkGlyphCache::AttachCache(cache); in DrawBmpText()
102 SkGlyphCache* cache = blob->setupCache(runIndex, props, SkPaint::FakeGamma::On, in DrawBmpPosText()
119 SkGlyphCache::AttachCache(cache); in DrawBmpPosText()
264 SkGlyphCache* origPaintCache = SkGlyphCache::DetachCache(skPaint.getTypeface(), in DrawDFText()
297 SkGlyphCache::AttachCache(origPaintCache); in DrawDFText()
344 SkGlyphCache* cache = blob->setupCache(runIndex, props, SkPaint::FakeGamma::Off, in DrawDFPosText()
414 SkGlyphCache::AttachCache(cache); in DrawDFPosText()
512 SkGlyphCache* cache = autoCache.getCache(); in DrawPosTextAsPath()
571 GrFontScaler* GrTextUtils::GetGrFontScaler(SkGlyphCache* cache) { in GetGrFontScaler()
DGrFontScaler.h48 explicit GrFontScaler(SkGlyphCache* strike);
63 SkGlyphCache* fStrike;
DGrAtlasTextBlob_regenInBatch.cpp145 Run::SubRunInfo* info, SkGlyphCache** cache, in regenInBatch()
165 SkGlyphCache::AttachCache(*cache); in regenInBatch()
168 *cache = SkGlyphCache::DetachCache(run->fTypeface, *desc); in regenInBatch()
257 int runIndex, int subRunIndex, SkGlyphCache** cache, in regenInBatch()
DGrTextUtils.h27 class SkGlyphCache; variable
87 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache);
DGrStencilAndCoverTextContext.h93 SkGlyphCache* getGlyphCache() const;
107 mutable SkGlyphCache* fDetachedGlyphCache;
DGrStencilAndCoverTextContext.cpp420 SkGlyphCache* glyphCache = this->getGlyphCache(); in TextRun()
442 SkGlyphCache* glyphCache = this->getGlyphCache(); in setText()
507 SkGlyphCache* glyphCache = this->getGlyphCache(); in setPosText()
542 SkGlyphCache* cache = this->getGlyphCache(); in createGlyphs()
630 SkGlyphCache* GrStencilAndCoverTextContext::TextRun::getGlyphCache() const { in getGlyphCache()
640 SkGlyphCache::AttachCache(fDetachedGlyphCache); in releaseGlyphCache()
DGrAtlasTextBlob.h149 SkGlyphCache* setupCache(int runIndex,
259 GrBlobRegenHelper *helper, int run, int subRun, SkGlyphCache** cache,
491 Run* run, Run::SubRunInfo* info, SkGlyphCache** cache,
DGrFontScaler.cpp16 GrFontScaler::GrFontScaler(SkGlyphCache* strike) { in GrFontScaler()
DGrAtlasTextBlob.cpp52 SkGlyphCache* GrAtlasTextBlob::setupCache(int runIndex, in setupCache()
64 return SkGlyphCache::DetachCache(run->fTypeface, desc->getDesc()); in setupCache()
/external/skia/include/core/
DSkPaint.h27 class SkGlyphCache; variable
1028 typedef const SkGlyph& (*GlyphCacheProc)(SkGlyphCache*, const char**);
1068 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length,
1082 SkGlyphCache* detachCache(const SkSurfaceProps* surfaceProps, FakeGamma fakeGamma,
DSkTypeface.h407 friend class SkGlyphCache; // GetDefaultTypeface variable
/external/skia/gyp/
Dxps.gyp22 '../src/core', # needed to get SkGlyphCache.h
Dpdf.gyp30 '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
Dcore.gypi136 '<(skia_src_path)/core/SkGlyphCache.cpp',
137 '<(skia_src_path)/core/SkGlyphCache.h',
/external/skia/src/gpu/batches/
DGrAtlasTextBatch.cpp140 SkGlyphCache* cache = nullptr; in onPrepareDraws()
177 SkGlyphCache::AttachCache(cache); in onPrepareDraws()
/external/skia/bench/
DSkGlyphCacheBench.cpp24 SkGlyphCache* cache = autoCache.getCache(); in do_font_stuff()
/external/skia/samplecode/
DSamplePictFile.cpp133 SkGlyphCache::Dump(); in onDrawContent()

12