Home
last modified time | relevance | path

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

12

/external/skia/src/image/
DSkImage_Generator.cpp21 , fCache(cache) // take ownership in SkImage_Generator()
26 SkImageCacherator* peekCacherator() const override { return fCache; } in peekCacherator()
28 bool isOpaque() const override { return fCache->info().isOpaque(); } in isOpaque()
35 SkAutoTDelete<SkImageCacherator> fCache; member in SkImage_Generator
46 if (fCache->lockAsBitmapOnlyIfAlreadyCached(&bm)) { in onReadPixels()
52 if (fCache->directGeneratePixels(dstInfo, dstPixels, dstRB, srcX, srcY)) { in onReadPixels()
70 return fCache->refEncoded(ctx); in onRefEncoded()
74 return fCache->lockAsBitmap(bitmap, this, chint); in getROPixels()
78 return fCache->lockAsTexture(ctx, params, this); in asTextureRef()
/external/skia/src/gpu/
DGrResourceCache.h359 ResourceAccess(GrResourceCache* cache) : fCache(cache) { } in ResourceAccess()
360 ResourceAccess(const ResourceAccess& that) : fCache(that.fCache) { } in ResourceAccess()
366 void insertResource(GrGpuResource* resource) { fCache->insertResource(resource); } in insertResource()
371 void removeResource(GrGpuResource* resource) { fCache->removeResource(resource); } in removeResource()
392 fCache->notifyCntReachedZero(resource, flags); in notifyCntReachedZero()
399 fCache->didChangeGpuMemorySize(resource, oldSize); in didChangeGpuMemorySize()
406 fCache->changeUniqueKey(resource, newKey); in changeUniqueKey()
412 void removeUniqueKey(GrGpuResource* resource) { fCache->removeUniqueKey(resource); } in removeUniqueKey()
418 fCache->willRemoveScratchKey(resource); in willRemoveScratchKey()
424 void didChangeBudgetStatus(GrGpuResource* resource) { fCache->didChangeBudgetStatus(resource); } in didChangeBudgetStatus()
[all …]
DGrTextureProvider.cpp24 : fCache(cache) in GrTextureProvider()
106 GrGpuResource* resource = fCache->findAndRefScratchResource(key, in refScratchTexture()
151 return this->isAbandoned() ? false : fCache->hasUniqueKey(key); in existsResourceWithUniqueKey()
156 return this->isAbandoned() ? nullptr : fCache->findAndRefUniqueResource(key); in findAndRefResourceByUniqueKey()
DGrLayerCache.cpp357 : fCache(cache) { in GrAutoValidateCache()
358 fCache->validate(); in GrAutoValidateCache()
361 fCache->validate(); in ~GrAutoValidateCache()
364 GrLayerCache* fCache; member in GrAutoValidateCache
/external/skia/include/gpu/
DGrTextureProvider.h140 fCache = NULL; in abandon()
144 GrResourceCache* cache() { return fCache; } in cache()
145 const GrResourceCache* cache() const { return fCache; } in cache()
151 SkASSERT(SkToBool(fGpu) == SkToBool(fCache)); in isAbandoned()
152 return !SkToBool(fCache); in isAbandoned()
156 GrResourceCache* fCache;
/external/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()
DUrlDataManager.h71 SkTDynamicHash<UrlData, SkData, LookupTrait> fCache; variable
/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()
/external/skia/src/gpu/text/
DGrBatchFontCache.cpp72 SkTDynamicHash<GrBatchTextStrike, GrFontDescKey>::Iter iter(&fCache); in ~GrBatchFontCache()
84 SkTDynamicHash<GrBatchTextStrike, GrFontDescKey>::Iter iter(&fCache); in freeAll()
90 fCache.rewind(); in freeAll()
100 SkTDynamicHash<GrBatchTextStrike, GrFontDescKey>::Iter iter(&fontCache->fCache); in HandleEviction()
108 fontCache->fCache.remove(*(strike->fFontScalerKey)); in HandleEviction()
166 SkTDynamicHash<GrGlyph, GrGlyph::PackedID>::Iter iter(&fCache); in ~GrBatchTextStrike()
189 fCache.add(glyph); in generateGlyph()
194 SkTDynamicHash<GrGlyph, GrGlyph::PackedID>::Iter iter(&fCache); in removeID()
211 SkASSERT(fCache.find(glyph->fPackedID)); in addGlyphToAtlas()
DGrBatchFontCache.h35 GrGlyph* glyph = fCache.find(packed); in getGlyph()
49 GrGlyph* glyph = fCache.find(packed); in getGlyph()
70 int countGlyphs() const { return fCache.count(); } in countGlyphs()
86 SkTDynamicHash<GrGlyph, GrGlyph::PackedID> fCache;
116 GrBatchTextStrike* strike = fCache.find(*(scaler->getKey())); in getStrike()
212 fCache.add(strike); in generateStrike()
225 SkTDynamicHash<GrBatchTextStrike, GrFontDescKey> fCache; variable
DGrTextBlobCache.h58 return fCache.find(key); in find()
62 fCache.remove(blob->key()); in remove()
68 fCache.add(blob); in add()
108 fCache.remove(lruBlob->key());
137 SkTDynamicHash<GrAtlasTextBlob, GrAtlasTextBlob::Key> fCache; variable
DGrTextBlobCache.cpp15 SkTDynamicHash<GrAtlasTextBlob, GrAtlasTextBlob::Key>::Iter iter(&fCache); in freeAll()
22 fCache.rewind(); in freeAll()
/external/skia/src/core/
DSkGlyphCache.h171 AutoValidate(const SkGlyphCache* cache) : fCache(cache) { in AutoValidate()
172 if (fCache) { in AutoValidate()
173 fCache->validate(); in AutoValidate()
177 if (fCache) { in ~AutoValidate()
178 fCache->validate(); in ~AutoValidate()
182 fCache = nullptr; in forget()
185 const SkGlyphCache* fCache;
DSkFindAndPlaceGlyph.h135 UtfNGlyphFinder(SkGlyphCache* cache) : fCache(cache) { SkASSERT(cache != nullptr); }
139 return fCache->getUnicharMetrics(nextUnichar(text));
143 return fCache->getUnicharMetrics(nextUnichar(text), x, y);
148 SkGlyphCache* fCache;
184 GlyphIdGlyphFinder(SkGlyphCache* cache) : fCache(cache) { SkASSERT(cache != nullptr); }
187 return fCache->getGlyphIDMetrics(nextGlyphId(text));
190 return fCache->getGlyphIDMetrics(nextGlyphId(text), x, y);
203 SkGlyphCache* fCache;
DSkTextToPathIter.h22 SkGlyphCache* fCache; variable
77 const SkGlyph& glyph = fGlyphCacheProc(fCache, &text); in setPosition()
DSkMaskFilter.cpp25 if (fCache) { in ~NinePatch()
26 SkASSERT((const void*)fMask.fImage == fCache->data()); in ~NinePatch()
27 fCache->unref(); in ~NinePatch()
/external/icu/icu4c/source/i18n/
Dreldatefmt.cpp652 fCache(NULL), in RelativeDateTimeFormatter()
663 fCache(NULL), in RelativeDateTimeFormatter()
675 fCache(NULL), in RelativeDateTimeFormatter()
691 fCache(NULL), in RelativeDateTimeFormatter()
719 fCache(other.fCache), in RelativeDateTimeFormatter()
726 fCache->addRef(); in RelativeDateTimeFormatter()
737 SharedObject::copyPtr(other.fCache, fCache); in operator =()
749 if (fCache != NULL) { in ~RelativeDateTimeFormatter()
750 fCache->removeRef(); in ~RelativeDateTimeFormatter()
788 return fCache->relativeUnits[fStyle][unit][bFuture].format( in format()
[all …]
/external/skia/src/effects/
DSkColorCubeFilter.cpp62 , fCache(cubeDimension) { in SkColorCubeFilter()
132 fCache.getProcessingLuts(&colorToIndex, &colorToFactors, &colorToScalar); in filterSpan()
135 colorToFactors, fCache.cubeDimension(), in filterSpan()
150 buffer.writeInt(fCache.cubeDimension()); in flatten()
306 builder[1] = fCache.cubeDimension(); in asFragmentProcessor()
310 desc.fWidth = fCache.cubeDimension(); in asFragmentProcessor()
311 desc.fHeight = fCache.cubeDimension() * fCache.cubeDimension(); in asFragmentProcessor()
/external/junit/src/junit/framework/
DJUnit4TestAdapter.java21 private final JUnit4TestAdapterCache fCache; field in JUnit4TestAdapter
29 fCache = cache; in JUnit4TestAdapter()
39 fRunner.run(fCache.getNotifier(result, this)); in run()
44 return fCache.asTestList(getDescription()); in getTests()
/external/skia/gm/
Dimage_pict.cpp258 SkAutoTDelete<SkImageCacherator> fCache; member in ImageCacheratorGM
287 fCache.reset(SkImageCacherator::NewFromGenerator(gen)); in makeCaches()
296 SkASSERT(fCache->uniqueID() == genID); in makeCaches()
300 SkASSERT(fCache->info().dimensions() == SkISize::Make(100, 100)); in makeCaches()
341 draw_as_tex(canvas, fCache, 310, 0); in drawSet()
344 draw_as_bitmap(canvas, fCache, 150, 0); in drawSet()
/external/skia/include/core/
DSkMaskFilter.h187 NinePatch() : fCache(nullptr) { } in NinePatch()
193 SkCachedData* fCache; variable
DSkImageFilter.h58 , fCache(cache) in Context()
63 Cache* cache() const { return fCache; } in cache()
68 Cache* fCache; variable
/external/skia/include/effects/
DSkColorCubeFilter.h73 mutable ColorCubeProcesingCache fCache; variable
/external/skia/src/effects/gradients/
DSkGradientShader.cpp302 , fCache(shader.refCache(getPaintAlpha(), fDither)) in GradientShaderBaseContext()
622 if (!fCache || fCache->getAlpha() != alpha || fCache->getDither() != dither) { in refCache()
623 fCache.reset(new GradientShaderCache(alpha, dither, *this)); in refCache()
628 fCache.get()->ref(); in refCache()
629 return fCache; in refCache()
DSkGradientShaderPriv.h179 SkAutoTUnref<GradientShaderCache> fCache; variable
275 mutable SkAutoTUnref<GradientShaderCache> fCache; variable

12