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

/external/skia/src/core/
H A DSkYUVPlanesCache.cpp24 YUVPlanesKey(uint32_t genID) argument
25 : fGenID(genID)
27 this->init(&gYUVPlanesKeyNamespaceLabel, SkMakeResourceCacheSharedIDForBitmap(genID),
28 sizeof(genID));
73 SkCachedData* SkYUVPlanesCache::FindAndRef(uint32_t genID, Info* info, argument
76 YUVPlanesKey key(genID);
85 void SkYUVPlanesCache::Add(uint32_t genID, SkCachedData* data, Info* info, argument
87 YUVPlanesKey key(genID);
H A DSkYUVPlanesCache.h40 static SkCachedData* FindAndRef(uint32_t genID, Info* info,
46 static void Add(uint32_t genID, SkCachedData* data, Info* info,
H A DSkDrawable.cpp17 int32_t genID; local
19 genID = sk_atomic_inc(&gCanvasDrawableGenerationID) + 1;
20 } while (0 == genID);
21 return genID;
H A DSkBitmapCache.h56 * Search based on the bitmap's genID and subset. If found, returns true and
59 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);
H A DSkBitmapCache.cpp87 BitmapKey(uint32_t genID, int width, int height, const SkIRect& bounds) argument
88 : fGenID(genID)
119 BitmapRec(uint32_t genID, int width, int height, const SkIRect& bounds, argument
121 : fKey(genID, width, height, bounds)
185 bool SkBitmapCache::Find(uint32_t genID, const SkIRect& subset, SkBitmap* result, argument
187 BitmapKey key(genID, SK_Scalar1, SK_Scalar1, subset);
211 bool SkBitmapCache::Find(uint32_t genID, SkBitmap* result, SkResourceCache* localCache) { argument
212 BitmapKey key(genID, SK_Scalar1, SK_Scalar1, SkIRect::MakeEmpty());
217 void SkBitmapCache::Add(uint32_t genID, const SkBitmap& result, SkResourceCache* localCache) { argument
220 BitmapRec* rec = new BitmapRec(genID,
233 MipMapKey(uint32_t genID, const SkIRect& bounds) argument
[all...]
H A DSkPixelRef.cpp78 // This is subtle. We must call that.getGenerationID() to make sure its genID isn't 0.
79 uint32_t genID = that.getGenerationID(); local
83 this->fTaggedGenID.store(genID & ~1u);
84 that. fTaggedGenID.store(genID & ~1u);
252 // we need to be called *before* the genID gets changed or zerod
254 // We don't invalidate ourselves if we think another SkPixelRef is sharing our genID.
289 void SkPixelRef::setImmutableWithID(uint32_t genID) { argument
291 * We are forcing the genID to match an external value. The caller must ensure that this
297 fTaggedGenID.store(genID);
H A DSkPathRef.cpp453 uint32_t SkPathRef::genID() const {
479 // we need to be called *before* the genID gets changed or zerod
H A DSkPath.cpp330 uint32_t genID = fPathRef->genID(); local
333 genID |= static_cast<uint32_t>(fFillType) << kPathRefGenIDBitCnt;
335 return genID;
/external/skia/tests/
H A DYUVCacheTest.cpp43 const uint32_t genID = 12345678; local
45 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfo, &cache);
52 SkYUVPlanesCache::Add(genID, data, &yuvInfo, &cache);
59 data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfoRead, &cache);
H A DSkResourceCacheTest.cpp167 const uint32_t genID = src[i].getGenerationID(); local
169 bool found = SkBitmapCache::Find(genID, subset, &result, cache);
178 found = SkBitmapCache::Find(genID, subset, &result, cache);
/external/skia/src/gpu/batches/
H A DGrAADistanceFieldPathRenderer.h44 Key(uint32_t genID, uint32_t dim, const SkStrokeRec& stroke) argument
45 : fGenID(genID)
H A DGrAADistanceFieldPathRenderer.cpp324 uint32_t genID,
417 pathData->fKey = PathData::Key(genID, dimension, stroke);
317 addPathToAtlas(GrVertexBatch::Target* target, const GrGeometryProcessor* dfProcessor, const GrPipeline* pipeline, FlushInfo* flushInfo, GrBatchAtlas* atlas, PathData* pathData, const SkPath& path, uint32_t genID, const SkStrokeRec& stroke, bool antiAlias, uint32_t dimension, SkScalar scale) const argument
/external/skia/src/effects/
H A DSkColorCubeFilter.cpp33 int32_t genID; local
35 genID = sk_atomic_inc(&gColorCubeUniqueID) + 1;
36 } while (0 == genID);
37 return genID;
/external/skia/src/gpu/
H A DGrBatchAtlas.h64 return fPlotArray[index]->genID() == GetGenerationFromID(id);
152 // index() is a unique id for the plot relative to the owning GrAtlas. genID() is a
154 // evicted from the cache (i.e., there is continuity in genID() across atlas spills).
156 uint64_t genID() const { return fGenID; } function in class:GrBatchAtlas::BatchPlot
185 BatchPlot(int index, uint64_t genID, int offX, int offY, int width, int height,
H A DGrBatchAtlas.cpp16 GrBatchAtlas::BatchPlot::BatchPlot(int index, uint64_t genID, int offX, int offY, int width, argument
21 , fGenID(genID)
H A DGrClipMaskManager.cpp331 int32_t genID = 0; local
384 &genID,
445 result.reset(this->createSoftwareClipMask(genID,
451 result.reset(this->createAlphaClipMask(genID,
475 genID,
/external/skia/gm/
H A Dimage_pict.cpp286 SkDEBUGCODE(const uint32_t genID = gen->uniqueID();)
296 SkASSERT(fCache->uniqueID() == genID);
297 SkASSERT(fCacheSubset->uniqueID() != genID);
/external/skia/include/core/
H A DSkPixelRef.h391 void setImmutableWithID(uint32_t genID);
H A DSkPathRef.h281 uint32_t genID() const;
340 /** Makes additional room but does not change the counts or change the genID */
/external/skia/src/utils/
H A DSkLua.cpp639 int32_t genID; local
647 &genID,
1248 setfield_number(L, "genID", bm.pixelRef() ? bm.pixelRef()->getGenerationID() : 0);

Completed in 831 milliseconds