Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkGlyphCache.h35 class SkGlyphCache {
119 static SkGlyphCache* VisitCache(SkTypeface*, const SkScalerContextEffects&, const SkDescriptor*,
120 bool (*proc)(const SkGlyphCache*, void*),
126 static void AttachCache(SkGlyphCache*);
127 using AttachCacheFunctor = SkFunctionWrapper<void, SkGlyphCache, AttachCache>;
136 static SkGlyphCache* DetachCache(SkTypeface* typeface, const SkScalerContextEffects& effects, in DetachCache()
148 typedef void (*Visitor)(const SkGlyphCache&, void* context);
159 AutoValidate(const SkGlyphCache* cache) : fCache(cache) { in AutoValidate()
173 const SkGlyphCache* fCache;
195 SkGlyphCache(const SkDescriptor*, std::unique_ptr<SkScalerContext>);
[all …]
DSkGlyphCache.cpp36 SkGlyphCache::SkGlyphCache(const SkDescriptor* desc, std::unique_ptr<SkScalerContext> ctx) in SkGlyphCache() function in SkGlyphCache
49 SkGlyphCache::~SkGlyphCache() { in ~SkGlyphCache()
57 SkGlyphCache::CharGlyphRec* SkGlyphCache::getCharGlyphRec(SkPackedUnicharID packedUnicharID) { in getCharGlyphRec()
73 SkGlyphID SkGlyphCache::unicharToGlyph(SkUnichar charCode) { in unicharToGlyph()
90 SkUnichar SkGlyphCache::glyphToUnichar(SkGlyphID glyphID) { in glyphToUnichar()
94 unsigned SkGlyphCache::getGlyphCount() const { in getGlyphCount()
98 int SkGlyphCache::countCachedGlyphs() const { in countCachedGlyphs()
104 const SkGlyph& SkGlyphCache::getUnicharAdvance(SkUnichar charCode) { in getUnicharAdvance()
109 const SkGlyph& SkGlyphCache::getGlyphIDAdvance(uint16_t glyphID) { in getGlyphIDAdvance()
117 const SkGlyph& SkGlyphCache::getUnicharMetrics(SkUnichar charCode) { in getUnicharMetrics()
[all …]
DSkGlyphCache_Globals.h42 SkGlyphCache* cache = fHead; in ~SkGlyphCache_Globals()
44 SkGlyphCache* next = cache->fNext; in ~SkGlyphCache_Globals()
52 SkGlyphCache* internalGetHead() const { return fHead; } in internalGetHead()
53 SkGlyphCache* internalGetTail() const;
76 void attachCacheToHead(SkGlyphCache*);
79 void internalDetachCache(SkGlyphCache*);
80 void internalAttachCacheToHead(SkGlyphCache*);
83 SkGlyphCache* fHead;
DSkFindAndPlaceGlyph.h26 SkGlyphCache* cache, ProcessOneGlyph&& processOneGlyph);
48 SkGlyphCache* cache, ProcessOneGlyph&& processOneGlyph);
64 explicit UtfNGlyphFinder(SkGlyphCache* cache) in UtfNGlyphFinder()
80 SkGlyphCache* fCache;
85 explicit Utf8GlyphFinder(SkGlyphCache* cache) : UtfNGlyphFinder(cache) { } in Utf8GlyphFinder()
93 explicit Utf16GlyphFinder(SkGlyphCache* cache) : UtfNGlyphFinder(cache) { } in Utf16GlyphFinder()
103 explicit Utf32GlyphFinder(SkGlyphCache* cache) : UtfNGlyphFinder(cache) { } in Utf32GlyphFinder()
116 explicit GlyphIdGlyphFinder(SkGlyphCache* cache) in GlyphIdGlyphFinder()
138 SkGlyphCache* fCache;
142 SkArenaAlloc* arena, SkPaint::TextEncoding encoding, SkGlyphCache* cache) { in getGlyphFinder()
[all …]
DSkPaint.cpp410 *((SkGlyphCache**)context) = SkGlyphCache::DetachCache(typeface, effects, desc); in DetachDescProc()
446 SkGlyphCache* cache = autoCache.getCache(); in textToGlyphs()
504 SkGlyphCache* cache = autoCache.getCache(); in containsText()
554 SkGlyphCache* cache = autoCache.getCache(); in glyphsToUnichars()
563 static const SkGlyph& sk_getMetrics_utf8_next(SkGlyphCache* cache, in sk_getMetrics_utf8_next()
571 static const SkGlyph& sk_getMetrics_utf16_next(SkGlyphCache* cache, in sk_getMetrics_utf16_next()
579 static const SkGlyph& sk_getMetrics_utf32_next(SkGlyphCache* cache, in sk_getMetrics_utf32_next()
590 static const SkGlyph& sk_getMetrics_glyph_next(SkGlyphCache* cache, in sk_getMetrics_glyph_next()
602 static const SkGlyph& sk_getAdvance_utf8_next(SkGlyphCache* cache, in sk_getAdvance_utf8_next()
610 static const SkGlyph& sk_getAdvance_utf16_next(SkGlyphCache* cache, in sk_getAdvance_utf16_next()
[all …]
DSkTextToPathIter.h14 class SkGlyphCache; variable
22 SkGlyphCache* fCache;
DSkGlyph.h19 class SkGlyphCache; variable
257 friend class SkGlyphCache;
DSkGraphics.cpp56 SkGlyphCache::DumpMemoryStatistics(dump); in DumpMemoryStatistics()
/external/skia/src/gpu/text/
DGrAtlasGlyphCache.h35 SkGlyphCache* cache) { in getGlyph()
49 SkGlyphCache* cache) { in getGlyph()
67 bool addGlyphToAtlas(GrDrawOp::Target*, GrGlyph*, SkGlyphCache*,
94 static const SkGlyph& GrToSkGlyph(SkGlyphCache* cache, GrGlyph::PackedID id) { in GrToSkGlyph()
100 GrGlyph* generateGlyph(const SkGlyph&, GrGlyph::PackedID, SkGlyphCache*);
119 inline GrAtlasTextStrike* getStrike(const SkGlyphCache* cache) { in getStrike()
220 GrAtlasTextStrike* generateStrike(const SkGlyphCache* cache) { in generateStrike()
DGrTextUtils.cpp111 SkGlyphCache* cache = blob->setupCache(runIndex, props, scalerContextFlags, paint, &viewMatrix); in DrawBmpText()
125 SkGlyphCache::AttachCache(cache); in DrawBmpText()
146 SkGlyphCache* cache = blob->setupCache(runIndex, props, scalerContextFlags, paint, &viewMatrix); in DrawBmpPosText()
161 SkGlyphCache::AttachCache(cache); in DrawBmpPosText()
167 int vx, int vy, GrColor color, SkGlyphCache* cache) { in BmpAppendGlyph()
316 SkGlyphCache* origPaintCache = SkGlyphCache::DetachCache(skPaint.getTypeface(), effects, in DrawDFText()
349 SkGlyphCache::AttachCache(origPaintCache); in DrawDFText()
397 SkGlyphCache* cache = blob->setupCache(runIndex, props, SkPaint::kNone_ScalerContextFlags, in DrawDFPosText()
457 SkGlyphCache::AttachCache(cache); in DrawDFPosText()
469 SkGlyphCache* glyphCache, in DfAppendGlyph()
[all …]
DGrAtlasGlyphCache.cpp230 static inline bool get_packed_glyph_bounds(SkGlyphCache* cache, const SkGlyph& glyph, in get_packed_glyph_bounds()
242 static inline bool get_packed_glyph_df_bounds(SkGlyphCache* cache, const SkGlyph& glyph, in get_packed_glyph_df_bounds()
279 static bool get_packed_glyph_image(SkGlyphCache* cache, const SkGlyph& glyph, int width, in get_packed_glyph_image()
335 static bool get_packed_glyph_df_image(SkGlyphCache* cache, const SkGlyph& glyph, in get_packed_glyph_df_image()
419 SkGlyphCache* cache) { in generateGlyph()
452 SkGlyphCache* cache, in addGlyphToAtlas()
DGrTextUtils.h33 class SkGlyphCache; variable
164 GrColor color, SkGlyphCache*);
169 SkGlyphCache* cache,
DGrStencilAndCoverTextContext.h91 SkGlyphCache* getGlyphCache() const;
105 mutable SkGlyphCache* fDetachedGlyphCache;
DGrStencilAndCoverTextContext.cpp413 SkGlyphCache* glyphCache = this->getGlyphCache(); in TextRun()
437 SkGlyphCache* glyphCache = this->getGlyphCache(); in setText()
499 SkGlyphCache* glyphCache = this->getGlyphCache(); in setPosText()
541 SkGlyphCache* cache = this->getGlyphCache(); in createGlyphs()
632 SkGlyphCache* GrStencilAndCoverTextContext::TextRun::getGlyphCache() const { in getGlyphCache()
643 SkGlyphCache::AttachCache(fDetachedGlyphCache); in releaseGlyphCache()
DGrAtlasTextBlob.cpp51 SkGlyphCache* GrAtlasTextBlob::setupCache(int runIndex, in setupCache()
67 return SkGlyphCache::DetachCache(run->fTypeface.get(), effects, desc->getDesc()); in setupCache()
75 SkGlyphCache* cache, const SkGlyph& skGlyph, in appendGlyph()
161 void GrAtlasTextBlob::appendLargeGlyph(GrGlyph* glyph, SkGlyphCache* cache, const SkGlyph& skGlyph, in appendLargeGlyph()
DGrAtlasTextBlob.h155 SkGlyphCache* setupCache(int runIndex,
168 SkGlyphCache*, const SkGlyph& skGlyph,
285 void appendLargeGlyph(GrGlyph* glyph, SkGlyphCache* cache, const SkGlyph& skGlyph,
DGrAtlasTextBlob_regenInOp.cpp160 lazyCache->reset(SkGlyphCache::DetachCache(run->fTypeface.get(), effects, desc)); in regenInOp()
/external/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.h13 class SkGlyphCache; variable
18 sk_sp<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(SkGlyphCache* cache,
DSkPDFMakeCIDGlyphWidthsArray.cpp142 sk_sp<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(SkGlyphCache* cache, in SkPDFMakeCIDGlyphWidthsArray()
/external/skia/include/core/
DSkPaint.h27 class SkGlyphCache; variable
1022 typedef const SkGlyph& (*GlyphCacheProc)(SkGlyphCache*, const char**);
1060 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length,
1081 SkGlyphCache* detachCache(const SkSurfaceProps* surfaceProps, uint32_t scalerContextFlags,
DSkTypeface.h401 friend class SkGlyphCache; // GetDefaultTypeface variable
/external/skia/bench/
DSkGlyphCacheBench.cpp24 SkGlyphCache* cache = autoCache.getCache(); in do_font_stuff()
DPathTextBench.cpp41 SkGlyphCache* cache = agc.getCache(); in onDelayedSetup()
/external/skia/samplecode/
DSamplePictFile.cpp126 SkGlyphCache::Dump(); in onDrawContent()
DSamplePathText.cpp27 SkGlyphCache* cache = agc.getCache(); in PathText()

12