/external/skia/src/core/ |
H A D | SkYUVPlanesCache.cpp | 24 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 D | SkYUVPlanesCache.h | 40 static SkCachedData* FindAndRef(uint32_t genID, Info* info, 46 static void Add(uint32_t genID, SkCachedData* data, Info* info,
|
H A D | SkDrawable.cpp | 17 int32_t genID; local 19 genID = sk_atomic_inc(&gCanvasDrawableGenerationID) + 1; 20 } while (0 == genID); 21 return genID;
|
H A D | SkBitmapCache.h | 56 * 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 D | SkBitmapCache.cpp | 87 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 D | SkPixelRef.cpp | 78 // 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 D | SkPathRef.cpp | 453 uint32_t SkPathRef::genID() const { 479 // we need to be called *before* the genID gets changed or zerod
|
H A D | SkPath.cpp | 330 uint32_t genID = fPathRef->genID(); local 333 genID |= static_cast<uint32_t>(fFillType) << kPathRefGenIDBitCnt; 335 return genID;
|
/external/skia/tests/ |
H A D | YUVCacheTest.cpp | 43 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 D | SkResourceCacheTest.cpp | 167 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 D | GrAADistanceFieldPathRenderer.h | 44 Key(uint32_t genID, uint32_t dim, const SkStrokeRec& stroke) argument 45 : fGenID(genID)
|
H A D | GrAADistanceFieldPathRenderer.cpp | 324 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 D | SkColorCubeFilter.cpp | 33 int32_t genID; local 35 genID = sk_atomic_inc(&gColorCubeUniqueID) + 1; 36 } while (0 == genID); 37 return genID;
|
/external/skia/src/gpu/ |
H A D | GrBatchAtlas.h | 64 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 D | GrBatchAtlas.cpp | 16 GrBatchAtlas::BatchPlot::BatchPlot(int index, uint64_t genID, int offX, int offY, int width, argument 21 , fGenID(genID)
|
H A D | GrClipMaskManager.cpp | 331 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 D | image_pict.cpp | 286 SkDEBUGCODE(const uint32_t genID = gen->uniqueID();) 296 SkASSERT(fCache->uniqueID() == genID); 297 SkASSERT(fCacheSubset->uniqueID() != genID);
|
/external/skia/include/core/ |
H A D | SkPixelRef.h | 391 void setImmutableWithID(uint32_t genID);
|
H A D | SkPathRef.h | 281 uint32_t genID() const; 340 /** Makes additional room but does not change the counts or change the genID */
|
/external/skia/src/utils/ |
H A D | SkLua.cpp | 639 int32_t genID; local 647 &genID, 1248 setfield_number(L, "genID", bm.pixelRef() ? bm.pixelRef()->getGenerationID() : 0);
|