Searched defs:genID (Results 1 - 13 of 13) 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));
69 SkCachedData* SkYUVPlanesCache::FindAndRef(uint32_t genID, Info* info, argument
72 YUVPlanesKey key(genID);
81 void SkYUVPlanesCache::Add(uint32_t genID, SkCachedData* data, Info* info, argument
83 YUVPlanesKey key(genID);
H A DSkBitmapCache.cpp51 BitmapKey(uint32_t genID, SkScalar sx, SkScalar sy, const SkIRect& bounds) argument
52 : fGenID(genID)
57 this->init(&gBitmapKeyNamespaceLabel, SkMakeResourceCacheSharedIDForBitmap(genID),
68 BitmapRec(uint32_t genID, SkScalar scaleX, SkScalar scaleY, const SkIRect& bounds, argument
70 : fKey(genID, scaleX, scaleY, bounds)
119 bool SkBitmapCache::Find(uint32_t genID, const SkIRect& subset, SkBitmap* result, argument
121 BitmapKey key(genID, SK_Scalar1, SK_Scalar1, subset);
153 MipMapKey(uint32_t genID, const SkIRect& bounds) : fGenID(genID), fBounds(bounds) { argument
154 this->init(&gMipMapKeyNamespaceLabel, SkMakeResourceCacheSharedIDForBitmap(genID),
[all...]
H A DSkPathRef.cpp218 // We've done the work to determine that these are equal. If either has a zero genID, copy
219 // the other's. If both are 0 then genID() will compute the next ID.
221 fGenerationID = ref.genID();
223 ref.fGenerationID = this->genID();
272 // We could call genID() here to force a real ID (instead of 0). However, if we're making
421 uint32_t SkPathRef::genID() const { function in class:SkPathRef
H A DSkPixelRef.cpp62 uint32_t genID; local
65 genID = sk_atomic_fetch_add(&gNextGenID, 2u) + 2; // Never set the low bit.
66 } while (0 == genID);
67 return genID;
130 // This is subtle. We must call that.getGenerationID() to make sure its genID isn't 0.
131 uint32_t genID = that.getGenerationID(); local
135 this->fTaggedGenID.store(genID & ~1u);
136 that. fTaggedGenID.store(genID & ~1u);
234 // we need to be called *before* the genID gets changed or zerod
236 // We don't invalidate ourselves if we think another SkPixelRef is sharing our genID
[all...]
H A DSkPath.cpp295 uint32_t genID = fPathRef->genID(); local
298 genID |= static_cast<uint32_t>(fFillType) << kPathRefGenIDBitCnt;
300 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.cpp224 const uint32_t genID = src[i].getGenerationID(); local
226 bool found = SkBitmapCache::Find(genID, subset, &result, cache);
235 found = SkBitmapCache::Find(genID, subset, &result, cache);
/external/skia/src/effects/
H A DSkColorCubeFilter.cpp30 int32_t genID; local
32 genID = sk_atomic_inc(&gColorCubeUniqueID) + 1;
33 } while (0 == genID);
34 return genID;
/external/skia/src/gpu/
H A DGrClipMaskManager.cpp220 int32_t genID = 0; local
256 &genID,
311 result = this->createSoftwareClipMask(genID,
317 result = this->createAlphaClipMask(genID,
347 genID,
H A DSkGr.cpp127 uint32_t genID = bitmap.getGenerationID(); local
134 builder[0] = genID;
160 // When the SkPixelRef genID changes, invalidate a corresponding GrResource described by key.
/external/skia/src/pipe/
H A DSkGPipePriv.h164 BitmapInfo(SkBitmap* bitmap, uint32_t genID, int toBeDrawnCount) argument
166 , fGenID(genID)
/external/skia/src/utils/
H A DSkLua.cpp638 int32_t genID; local
646 &genID,
1212 setfield_number(L, "genID", bm.pixelRef() ? bm.pixelRef()->getGenerationID() : 0);

Completed in 296 milliseconds