Home
last modified time | relevance | path

Searched refs:fCache (Results 1 – 25 of 46) sorted by relevance

12

/third_party/flutter/skia/src/gpu/text/
DGrStrikeCache.h34 GrGlyph* grGlyph = fCache.find(skGlyph.getPackedID()); in getGlyph()
37 fCache.add(grGlyph); in getGlyph()
47 GrGlyph* grGlyph = fCache.find(packed); in getGlyph()
53 fCache.add(grGlyph); in getGlyph()
69 int countGlyphs() const { return fCache.count(); } in countGlyphs()
84 SkTDynamicHash<GrGlyph, SkPackedGlyphID> fCache;
110 sk_sp<GrTextStrike> strike = sk_ref_sp(fCache.find(desc)); in getStrike()
127 fCache.add(strike.get()); in generateStrike()
133 StrikeHash fCache; variable
DGrStrikeCache.cpp23 StrikeHash::Iter iter(&fCache); in ~GrStrikeCache()
32 StrikeHash::Iter iter(&fCache); in freeAll()
38 fCache.rewind(); in freeAll()
44 StrikeHash::Iter iter(&grStrikeCache->fCache); in HandleEviction()
52 grStrikeCache->fCache.remove(GrTextStrike::GetKey(*strike)); in HandleEviction()
176 SkTDynamicHash<GrGlyph, SkPackedGlyphID>::Iter iter(&fCache); in removeID()
198 SkASSERT(fCache.find(glyph->fPackedID)); in addGlyphToAtlas()
/third_party/flutter/skia/src/core/
DSkTypeface_remote.cpp23 SkASSERT(fCache == nullptr); in initCache()
26 fCache = cache; in initCache()
48 if (fCache && fCache->belongsToCache(glyph)) { in generateMetrics()
51 fCache->getCachedGlyphAnySubPix(glyph->getGlyphID(), glyph->getPackedID())) { in generateMetrics()
52 fCache->mergeGlyphAndImage(glyph->getPackedID(), *from); in generateMetrics()
59 if (fStrikeCache->desperationSearchForImage(fCache->getDescriptor(), glyph, fCache)) { in generateMetrics()
DSkStrike.h147 AutoValidate(const SkStrike* cache) : fCache(cache) { in AutoValidate()
148 if (fCache) { in AutoValidate()
149 fCache->validate(); in AutoValidate()
153 if (fCache) { in ~AutoValidate()
154 fCache->validate(); in ~AutoValidate()
158 fCache = nullptr; in forget()
161 const SkStrike* fCache;
DSkImageFilterTypes.h39 , fCache(cache) in Context()
59 SkImageFilterCache* cache() const { return fCache; } in cache()
105 return Context(layerMatrix, fClipBounds, fCache, fColorType, fColorSpace, fSource); in withNewLayerMatrix()
109 return Context(fLayerMatrix, clipBounds, fCache, fColorType, fColorSpace, fSource); in withNewClipBounds()
115 SkImageFilterCache* fCache; variable
/third_party/flutter/skia/src/gpu/
DGrResourceCache.h394 ResourceAccess(GrResourceCache* cache) : fCache(cache) { } in ResourceAccess()
395 ResourceAccess(const ResourceAccess& that) : fCache(that.fCache) { } in ResourceAccess()
401 void insertResource(GrGpuResource* resource) { fCache->insertResource(resource); } in insertResource()
406 void removeResource(GrGpuResource* resource) { fCache->removeResource(resource); } in removeResource()
412 void refResource(GrGpuResource* resource) { fCache->refResource(resource); } in refResource()
433 fCache->notifyCntReachedZero(resource, flags); in notifyCntReachedZero()
440 fCache->changeUniqueKey(resource, newKey); in changeUniqueKey()
446 void removeUniqueKey(GrGpuResource* resource) { fCache->removeUniqueKey(resource); } in removeUniqueKey()
452 fCache->willRemoveScratchKey(resource); in willRemoveScratchKey()
458 void didChangeBudgetStatus(GrGpuResource* resource) { fCache->didChangeBudgetStatus(resource); } in didChangeBudgetStatus()
[all …]
DGrResourceProvider.h277 fCache = nullptr; in abandon()
281 uint32_t contextUniqueID() const { return fCache->contextUniqueID(); } in contextUniqueID()
283 bool overBudget() const { return fCache->overBudget(); } in overBudget()
314 GrResourceCache* cache() { return fCache; } in cache()
315 const GrResourceCache* cache() const { return fCache; } in cache()
324 SkASSERT(SkToBool(fGpu) == SkToBool(fCache)); in isAbandoned()
325 return !SkToBool(fCache); in isAbandoned()
336 GrResourceCache* fCache; variable
/third_party/skia/src/gpu/
DGrResourceCache.h394 ResourceAccess(GrResourceCache* cache) : fCache(cache) { } in ResourceAccess()
395 ResourceAccess(const ResourceAccess& that) : fCache(that.fCache) { } in ResourceAccess()
401 void insertResource(GrGpuResource* resource) { fCache->insertResource(resource); } in insertResource()
406 void removeResource(GrGpuResource* resource) { fCache->removeResource(resource); } in removeResource()
412 void refResource(GrGpuResource* resource) { fCache->refResource(resource); } in refResource()
430 fCache->notifyARefCntReachedZero(resource, removedRef); in notifyARefCntReachedZero()
437 fCache->changeUniqueKey(resource, newKey); in changeUniqueKey()
443 void removeUniqueKey(GrGpuResource* resource) { fCache->removeUniqueKey(resource); } in removeUniqueKey()
449 fCache->willRemoveScratchKey(resource); in willRemoveScratchKey()
455 void didChangeBudgetStatus(GrGpuResource* resource) { fCache->didChangeBudgetStatus(resource); } in didChangeBudgetStatus()
[all …]
DGrResourceProvider.h327 fCache = nullptr; in abandon()
331 uint32_t contextUniqueID() const { return fCache->contextUniqueID(); } in contextUniqueID()
333 bool overBudget() const { return fCache->overBudget(); } in overBudget()
387 GrResourceCache* cache() { return fCache; } in cache()
388 const GrResourceCache* cache() const { return fCache; } in cache()
397 SkASSERT(SkToBool(fGpu) == SkToBool(fCache)); in isAbandoned()
398 return !SkToBool(fCache); in isAbandoned()
410 GrResourceCache* fCache; variable
/third_party/flutter/skia/tools/
DUrlDataManager.cpp17 UrlData* urlData = fCache.find(*data); in addData()
18 if (fCache.find(*data)) { in addData()
28 fCache.add(urlData); in addData()
36 SkTDynamicHash<UrlData, SkData, LookupTrait>::Iter iter(&fCache); in reset()
43 fCache.rewind(); in reset()
/third_party/flutter/skia/bench/
DImageCacheBench.cpp39 SkResourceCache fCache; member in ImageCacheBench
45 ImageCacheBench() : fCache(CACHE_COUNT * 100) {} in ImageCacheBench()
49 fCache.add(new TestRec(TestKey(i), i)); in populateCache()
59 if (fCache.getTotalBytesUsed() == 0) { in onDraw()
66 SkDEBUGCODE(bool found =) fCache.find(key, TestRec::Visitor, nullptr); in onDraw()
DCmapBench.cpp22 const SkCharToGlyphCache& fCache; member
63 r.fCache.findGlyphIndex(r.fText[i]); in findcache_proc()
73 SkCharToGlyphCache fCache; member in CMAPBench
87 fCache.addCharAndGlyph(fText[i], i); in CMAPBench()
102 fProc({fCache, loops, fFont, fText, fCount}); in onDraw()
/third_party/skia/src/gpu/text/
DGrStrikeCache.cpp18 fCache.reset(); in freeAll()
22 if (sk_sp<GrTextStrike>* cached = fCache.find(strikeSpec.descriptor())) { in findOrCreateStrike()
30 fCache.set(strike); in generateStrike()
45 GrGlyph* grGlyph = fCache.findOrNull(packedGlyphID); in getGlyph()
48 fCache.set(grGlyph); in getGlyph()
DGrStrikeCache.h39 SkTHashTable<GrGlyph*, SkPackedGlyphID, HashTraits> fCache; variable
68 StrikeHash fCache; variable
/third_party/skia/bench/
DImageCacheBench.cpp39 SkResourceCache fCache; member in ImageCacheBench
45 ImageCacheBench() : fCache(CACHE_COUNT * 100) {} in ImageCacheBench()
49 fCache.add(new TestRec(TestKey(i), i)); in populateCache()
59 if (fCache.getTotalBytesUsed() == 0) { in onDraw()
66 SkDEBUGCODE(bool found =) fCache.find(key, TestRec::Visitor, nullptr); in onDraw()
DCmapBench.cpp22 const SkCharToGlyphCache& fCache; member
63 r.fCache.findGlyphIndex(r.fText[i]); in findcache_proc()
73 SkCharToGlyphCache fCache; member in CMAPBench
87 fCache.addCharAndGlyph(fText[i], i); in CMAPBench()
102 fProc({fCache, loops, fFont, fText, fCount}); in onDraw()
DGlyphQuadFillBench.cpp59 subRun->testingOnly_packedGlyphIDToGrGlyph(&fCache); in onPerCanvasPreDraw()
80 GrStrikeCache fCache; member in DirectMaskGlyphVertexFillBenchmark
/third_party/skia/tools/
DUrlDataManager.cpp19 UrlData* urlData = fCache.find(*data); in addData()
20 if (fCache.find(*data)) { in addData()
30 fCache.add(urlData); in addData()
38 fCache.foreach([&](UrlData* urlData) { in reset()
41 fCache.rewind(); in reset()
/third_party/flutter/skia/experimental/xform/
DXContext.cpp46 fCache.reset(nullptr); in clipRect()
51 fCache.reset(nullptr); in clipRRect()
55 fCache.reset(nullptr); in clipPath()
61 if (!fCache) { in snapCache()
62 fCache = sk_sp<ClipCache>(new RasterClipCache(fRC)); in snapCache()
64 return fCache; in snapCache()
71 sk_sp<ClipCache> fCache; member in RasterXformResolver
/third_party/skia/experimental/xform/
DXContext.cpp46 fCache.reset(nullptr); in clipRect()
51 fCache.reset(nullptr); in clipRRect()
55 fCache.reset(nullptr); in clipPath()
61 if (!fCache) { in snapCache()
62 fCache = sk_sp<ClipCache>(new RasterClipCache(fRC)); in snapCache()
64 return fCache; in snapCache()
71 sk_sp<ClipCache> fCache; member in RasterXformResolver
/third_party/flutter/skia/gm/
Dskinning.cpp83 , fCache(cache) in SkinningGM()
96 if (fCache) { in onShortName()
116 !fCache); in onOnceBeforeDraw()
201 bool fCache; member in SkinningGM
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dreldatefmt.cpp714 fCache(nullptr), in RelativeDateTimeFormatter()
725 fCache(nullptr), in RelativeDateTimeFormatter()
737 fCache(nullptr), in RelativeDateTimeFormatter()
753 fCache(nullptr), in RelativeDateTimeFormatter()
781 fCache(other.fCache), in RelativeDateTimeFormatter()
788 fCache->addRef(); in RelativeDateTimeFormatter()
799 SharedObject::copyPtr(other.fCache, fCache); in operator =()
811 if (fCache != nullptr) { in ~RelativeDateTimeFormatter()
812 fCache->removeRef(); in ~RelativeDateTimeFormatter()
858 fCache->getRelativeUnitFormatter(fStyle, unit, bFuture, pluralIndex); in format()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dreldatefmt.cpp750 fCache(nullptr), in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL()
761 fCache(nullptr), in RelativeDateTimeFormatter()
773 fCache(nullptr), in RelativeDateTimeFormatter()
789 fCache(nullptr), in RelativeDateTimeFormatter()
817 fCache(other.fCache), in RelativeDateTimeFormatter()
824 fCache->addRef(); in RelativeDateTimeFormatter()
835 SharedObject::copyPtr(other.fCache, fCache); in operator =()
847 if (fCache != nullptr) { in ~RelativeDateTimeFormatter()
848 fCache->removeRef(); in ~RelativeDateTimeFormatter()
966 fCache->getRelativeUnitFormatter(fStyle, unit, bFuture, pluralForm); in formatImpl()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dreldatefmt.cpp750 fCache(nullptr), in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL()
761 fCache(nullptr), in RelativeDateTimeFormatter()
773 fCache(nullptr), in RelativeDateTimeFormatter()
789 fCache(nullptr), in RelativeDateTimeFormatter()
817 fCache(other.fCache), in RelativeDateTimeFormatter()
824 fCache->addRef(); in RelativeDateTimeFormatter()
835 SharedObject::copyPtr(other.fCache, fCache); in operator =()
847 if (fCache != nullptr) { in ~RelativeDateTimeFormatter()
848 fCache->removeRef(); in ~RelativeDateTimeFormatter()
966 fCache->getRelativeUnitFormatter(fStyle, unit, bFuture, pluralForm); in formatImpl()
[all …]
/third_party/icu/icu4c/source/i18n/
Dreldatefmt.cpp750 fCache(nullptr), in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL()
761 fCache(nullptr), in RelativeDateTimeFormatter()
773 fCache(nullptr), in RelativeDateTimeFormatter()
789 fCache(nullptr), in RelativeDateTimeFormatter()
817 fCache(other.fCache), in RelativeDateTimeFormatter()
824 fCache->addRef(); in RelativeDateTimeFormatter()
835 SharedObject::copyPtr(other.fCache, fCache); in operator =()
847 if (fCache != nullptr) { in ~RelativeDateTimeFormatter()
848 fCache->removeRef(); in ~RelativeDateTimeFormatter()
966 fCache->getRelativeUnitFormatter(fStyle, unit, bFuture, pluralForm); in formatImpl()
[all …]

12