Searched defs:genID (Results 1 - 14 of 14) sorted by relevance

/external/skia/src/core/
H A DSkDrawable.cpp17 int32_t genID; local
19 genID = sk_atomic_inc(&gCanvasDrawableGenerationID) + 1;
20 } while (0 == genID);
21 return genID;
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 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 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/gpu/
H A DGrBatchAtlas.cpp16 GrBatchAtlas::BatchPlot::BatchPlot(int index, uint64_t genID, int offX, int offY, int width, argument
21 , fGenID(genID)
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 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/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/utils/
H A DSkLua.cpp639 int32_t genID; local
647 &genID,
1248 setfield_number(L, "genID", bm.pixelRef() ? bm.pixelRef()->getGenerationID() : 0);

Completed in 368 milliseconds