Home
last modified time | relevance | path

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

12

/external/skqp/src/core/
DSkTypeface_remote.cpp23 SkASSERT(fCache == nullptr); in initCache()
26 fCache = cache; in initCache()
54 if (fCache && fCache->belongsToCache(glyph)) { in generateMetrics()
57 fCache->getCachedGlyphAnySubPix(glyph->getGlyphID(), glyph->getPackedID())) { in generateMetrics()
58 fCache->initializeGlyphFromFallback(glyph, *fallback); in generateMetrics()
65 if (fStrikeCache->desperationSearchForImage(fCache->getDescriptor(), glyph, fCache)) { in generateMetrics()
DSkStrikeCache.cpp28 , fCache{desc, std::move(scaler), metrics}
32 return fCache.rounding(); in rounding()
36 return fCache.getGlyphMetrics(glyphID, position); in getGlyphMetrics()
40 return fCache.hasImage(glyph); in hasImage()
44 return fCache.hasPath(glyph); in hasPath()
50 SkStrike fCache; member in SkStrikeCache::Node
87 return &fNode->fCache; in get()
289 node->fCache.validate(); in attachNode()
303 if (node->fCache.getDescriptor() == desc) { in findAndDetachStrike()
348 if (loose_compare(node->fCache.getDescriptor(), desc)) { in desperationSearchForImage()
[all …]
DSkStrike.h150 AutoValidate(const SkStrike* cache) : fCache(cache) { in AutoValidate()
151 if (fCache) { in AutoValidate()
152 fCache->validate(); in AutoValidate()
156 if (fCache) { in ~AutoValidate()
157 fCache->validate(); in ~AutoValidate()
161 fCache = nullptr; in forget()
164 const SkStrike* fCache;
DSkFindAndPlaceGlyph.h229 explicit GlyphFindAndPlaceSubpixel(SkStrike* cache) : fCache(cache) {} in GlyphFindAndPlaceSubpixel()
234 …const SkGlyph& renderGlyph = fCache->getGlyphIDMetrics(glyphID, lookupPosition.fX, lookupPosition.… in findAndPositionGlyph()
246 SkStrike* fCache;
254 explicit GlyphFindAndPlaceFullPixel(SkStrike* cache) : fCache(cache) {} in GlyphFindAndPlaceFullPixel()
260 const SkGlyph& glyph = fCache->getGlyphIDMetrics(glyphID); in findAndPositionGlyph()
270 SkStrike* fCache;
DSkMaskFilterBase.h171 NinePatch() : fCache(nullptr) { } in NinePatch()
177 SkCachedData* fCache; variable
/external/skqp/src/gpu/text/
DGrStrikeCache.h34 GrGlyph* glyph = fCache.find(skGlyph.getPackedID()); in getGlyph()
47 GrGlyph* glyph = fCache.find(packed); in getGlyph()
69 int countGlyphs() const { return fCache.count(); } in countGlyphs()
84 SkTDynamicHash<GrGlyph, SkPackedGlyphID> fCache;
116 sk_sp<GrTextStrike> strike = sk_ref_sp(fCache.find(cache->getDescriptor())); in getStrike()
133 fCache.add(strike.get()); in generateStrike()
139 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(&glyphCache->fCache); in HandleEviction()
52 glyphCache->fCache.remove(GrTextStrike::GetKey(*strike)); in HandleEviction()
177 fCache.add(grGlyph); in generateGlyph()
182 SkTDynamicHash<GrGlyph, SkPackedGlyphID>::Iter iter(&fCache); in removeID()
204 SkASSERT(fCache.find(glyph->fPackedID)); in addGlyphToAtlas()
/external/skqp/src/gpu/
DGrResourceCache.h370 ResourceAccess(GrResourceCache* cache) : fCache(cache) { } in ResourceAccess()
371 ResourceAccess(const ResourceAccess& that) : fCache(that.fCache) { } in ResourceAccess()
377 void insertResource(GrGpuResource* resource) { fCache->insertResource(resource); } in insertResource()
382 void removeResource(GrGpuResource* resource) { fCache->removeResource(resource); } in removeResource()
403 fCache->notifyCntReachedZero(resource, flags); in notifyCntReachedZero()
410 fCache->changeUniqueKey(resource, newKey); in changeUniqueKey()
416 void removeUniqueKey(GrGpuResource* resource) { fCache->removeUniqueKey(resource); } in removeUniqueKey()
422 fCache->willRemoveScratchKey(resource); in willRemoveScratchKey()
428 void didChangeBudgetStatus(GrGpuResource* resource) { fCache->didChangeBudgetStatus(resource); } in didChangeBudgetStatus()
434 GrResourceCache* fCache; variable
DGrResourceProvider.h247 fCache = nullptr; in abandon()
251 uint32_t contextUniqueID() const { return fCache->contextUniqueID(); } in contextUniqueID()
253 bool overBudget() const { return fCache->overBudget(); } in overBudget()
275 GrResourceCache* cache() { return fCache; } in cache()
276 const GrResourceCache* cache() const { return fCache; } in cache()
285 SkASSERT(SkToBool(fGpu) == SkToBool(fCache)); in isAbandoned()
286 return !SkToBool(fCache); in isAbandoned()
297 GrResourceCache* fCache; variable
/external/skia/src/gpu/
DGrResourceCache.h395 ResourceAccess(GrResourceCache* cache) : fCache(cache) { } in ResourceAccess()
396 ResourceAccess(const ResourceAccess& that) : fCache(that.fCache) { } in ResourceAccess()
402 void insertResource(GrGpuResource* resource) { fCache->insertResource(resource); } in insertResource()
407 void removeResource(GrGpuResource* resource) { fCache->removeResource(resource); } in removeResource()
413 void refResource(GrGpuResource* resource) { fCache->refResource(resource); } in refResource()
431 fCache->notifyARefCntReachedZero(resource, removedRef); in notifyARefCntReachedZero()
438 fCache->changeUniqueKey(resource, newKey); in changeUniqueKey()
444 void removeUniqueKey(GrGpuResource* resource) { fCache->removeUniqueKey(resource); } in removeUniqueKey()
450 fCache->willRemoveScratchKey(resource); in willRemoveScratchKey()
456 void didChangeBudgetStatus(GrGpuResource* resource) { fCache->didChangeBudgetStatus(resource); } in didChangeBudgetStatus()
[all …]
DGrResourceProvider.h298 fCache = nullptr; in abandon()
302 uint32_t contextUniqueID() const { return fCache->contextUniqueID(); } in contextUniqueID()
304 bool overBudget() const { return fCache->overBudget(); } in overBudget()
356 GrResourceCache* cache() { return fCache; } in cache()
357 const GrResourceCache* cache() const { return fCache; } in cache()
366 SkASSERT(SkToBool(fGpu) == SkToBool(fCache)); in isAbandoned()
367 return !SkToBool(fCache); in isAbandoned()
379 GrResourceCache* fCache; variable
/external/skqp/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()
/external/skqp/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()
/external/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.cpp60 subRun->testingOnly_packedGlyphIDToGrGlyph(&fCache); in onPerCanvasPreDraw()
81 GrStrikeCache fCache; member in DirectMaskGlyphVertexFillBenchmark
/external/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()
/external/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
/external/skia/src/gpu/text/
DGrStrikeCache.h45 SkTHashTable<GrGlyph*, SkPackedGlyphID, HashTraits> fCache; variable
65 if (sk_sp<GrTextStrike>* cached = fCache.find(desc)) { in findOrCreateStrike()
76 fCache.set(strike); in generateStrike()
89 StrikeHash fCache; variable
DGrStrikeCache.cpp22 fCache.reset(); in freeAll()
38 GrGlyph* grGlyph = fCache.findOrNull(packedGlyphID); in getGlyph()
41 fCache.set(grGlyph); in getGlyph()
/external/junit/src/main/java/junit/framework/
DJUnit4TestAdapter.java33 private final JUnit4TestAdapterCache fCache; field in JUnit4TestAdapter
40 fCache = cache; in JUnit4TestAdapter()
50 fRunner.run(fCache.getNotifier(result, this)); in run()
55 return fCache.asTestList(getDescription()); in getTests()
/external/skqp/gm/
Dskinning.cpp78 , fCache(cache) in SkinningGM()
91 if (fCache) { in onShortName()
111 !fCache); in onOnceBeforeDraw()
196 bool fCache; member in SkinningGM
/external/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 …]
/external/skqp/src/ports/
DSkFontMgr_FontConfigInterface.cpp166 mutable SkFontRequestCache fCache; member in SkFontMgr_FCI
171 , fCache(kMaxSize) in SkFontMgr_FCI()
303 SkTypeface* face = fCache.findAndRef(request.get()); in onLegacyMakeTypeface()
325 fCache.add(face, request.release()); in onLegacyMakeTypeface()
/external/skia/src/core/
DSkMaskFilterBase.h178 NinePatch() : fCache(nullptr) { } in NinePatch()
184 SkCachedData* fCache; variable

12