Home
last modified time | relevance | path

Searched refs:genID (Results 1 – 20 of 20) sorted by relevance

/external/skia/src/core/
DSkYUVPlanesCache.cpp24 YUVPlanesKey(uint32_t genID) in YUVPlanesKey()
25 : fGenID(genID) in YUVPlanesKey()
27 this->init(&gYUVPlanesKeyNamespaceLabel, SkMakeResourceCacheSharedIDForBitmap(genID), in YUVPlanesKey()
28 sizeof(genID)); in YUVPlanesKey()
73 SkCachedData* SkYUVPlanesCache::FindAndRef(uint32_t genID, Info* info, in FindAndRef() argument
76 YUVPlanesKey key(genID); in FindAndRef()
85 void SkYUVPlanesCache::Add(uint32_t genID, SkCachedData* data, Info* info, in Add() argument
87 YUVPlanesKey key(genID); in Add()
DSkBitmapCache.cpp87 BitmapKey(uint32_t genID, int width, int height, const SkIRect& bounds) in BitmapKey()
88 : fGenID(genID) in BitmapKey()
119 BitmapRec(uint32_t genID, int width, int height, const SkIRect& bounds, in BitmapRec()
121 : fKey(genID, width, height, bounds) in BitmapRec()
185 bool SkBitmapCache::Find(uint32_t genID, const SkIRect& subset, SkBitmap* result, in Find() argument
187 BitmapKey key(genID, SK_Scalar1, SK_Scalar1, subset); in Find()
211 bool SkBitmapCache::Find(uint32_t genID, SkBitmap* result, SkResourceCache* localCache) { in Find() argument
212 BitmapKey key(genID, SK_Scalar1, SK_Scalar1, SkIRect::MakeEmpty()); in Find()
217 void SkBitmapCache::Add(uint32_t genID, const SkBitmap& result, SkResourceCache* localCache) { in Add() argument
220 BitmapRec* rec = new BitmapRec(genID, 1, 1, SkIRect::MakeEmpty(), result); in Add()
[all …]
DSkDrawable.cpp17 int32_t genID; in next_generation_id() local
19 genID = sk_atomic_inc(&gCanvasDrawableGenerationID) + 1; in next_generation_id()
20 } while (0 == genID); in next_generation_id()
21 return genID; in next_generation_id()
DSkBitmapCache.h59 static bool Find(uint32_t genID, const SkIRect& subset, SkBitmap* result,
69 static bool Find(uint32_t genID, SkBitmap* result, SkResourceCache* localCache = nullptr);
71 static void Add(uint32_t genID, const SkBitmap&, SkResourceCache* localCache = nullptr);
DSkPixelRef.cpp79 uint32_t genID = that.getGenerationID(); in cloneGenID() local
83 this->fTaggedGenID.store(genID & ~1u); in cloneGenID()
84 that. fTaggedGenID.store(genID & ~1u); in cloneGenID()
289 void SkPixelRef::setImmutableWithID(uint32_t genID) { in setImmutableWithID() argument
297 fTaggedGenID.store(genID); in setImmutableWithID()
DSkYUVPlanesCache.h40 static SkCachedData* FindAndRef(uint32_t genID, Info* info,
46 static void Add(uint32_t genID, SkCachedData* data, Info* info,
DSkPathRef.cpp453 uint32_t SkPathRef::genID() const { in genID() function in SkPathRef
DSkPath.cpp330 uint32_t genID = fPathRef->genID(); in getGenerationID() local
333 genID |= static_cast<uint32_t>(fFillType) << kPathRefGenIDBitCnt; in getGenerationID()
335 return genID; in getGenerationID()
/external/skia/tests/
DYUVCacheTest.cpp43 const uint32_t genID = 12345678; in DEF_TEST() local
45 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfo, &cache); in DEF_TEST()
52 SkYUVPlanesCache::Add(genID, data, &yuvInfo, &cache); in DEF_TEST()
59 data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfoRead, &cache); in DEF_TEST()
DSkResourceCacheTest.cpp167 const uint32_t genID = src[i].getGenerationID(); in test_bitmap_notify() local
169 bool found = SkBitmapCache::Find(genID, subset, &result, cache); in test_bitmap_notify()
178 found = SkBitmapCache::Find(genID, subset, &result, cache); in test_bitmap_notify()
/external/skia/src/gpu/batches/
DGrAADistanceFieldPathRenderer.h44 Key(uint32_t genID, uint32_t dim, const SkStrokeRec& stroke) in Key()
45 : fGenID(genID) in Key()
DGrAADistanceFieldPathRenderer.cpp324 uint32_t genID, in addPathToAtlas() argument
417 pathData->fKey = PathData::Key(genID, dimension, stroke); in addPathToAtlas()
/external/skia/src/effects/
DSkColorCubeFilter.cpp33 int32_t genID; in SkNextColorCubeUniqueID() local
35 genID = sk_atomic_inc(&gColorCubeUniqueID) + 1; in SkNextColorCubeUniqueID()
36 } while (0 == genID); in SkNextColorCubeUniqueID()
37 return genID; in SkNextColorCubeUniqueID()
/external/skia/src/gpu/
DGrBatchAtlas.h64 return fPlotArray[index]->genID() == GetGenerationFromID(id); in hasID()
156 uint64_t genID() const { return fGenID; } in genID() function
185 BatchPlot(int index, uint64_t genID, int offX, int offY, int width, int height,
DGrBatchAtlas.cpp16 GrBatchAtlas::BatchPlot::BatchPlot(int index, uint64_t genID, int offX, int offY, int width, in BatchPlot() argument
21 , fGenID(genID) in BatchPlot()
DGrClipMaskManager.cpp331 int32_t genID = 0; in setupClipping() local
384 &genID, in setupClipping()
445 result.reset(this->createSoftwareClipMask(genID, in setupClipping()
451 result.reset(this->createAlphaClipMask(genID, in setupClipping()
475 genID, in setupClipping()
/external/skia/gm/
Dimage_pict.cpp286 SkDEBUGCODE(const uint32_t genID = gen->uniqueID();) in makeCaches()
296 SkASSERT(fCache->uniqueID() == genID); in makeCaches()
297 SkASSERT(fCacheSubset->uniqueID() != genID); in makeCaches()
/external/skia/include/core/
DSkPixelRef.h391 void setImmutableWithID(uint32_t genID);
DSkPathRef.h281 uint32_t genID() const;
/external/skia/src/utils/
DSkLua.cpp639 int32_t genID; in lcanvas_getReducedClipStack() local
647 &genID, in lcanvas_getReducedClipStack()