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

/external/chromium_org/third_party/skia/src/core/
H A DSkBitmapCache.h39 * Search based on the bitmap's genID and subset. If found, returns true and
42 static bool Find(uint32_t genID, const SkIRect& subset, SkBitmap* result,
49 static bool Add(uint32_t genID, const SkIRect& subset, const SkBitmap& result,
H A DSkBitmapCache.cpp33 BitmapKey(uint32_t genID, SkScalar scaleX, SkScalar scaleY, const SkIRect& bounds) argument
34 : fGenID(genID)
51 BitmapRec(uint32_t genID, SkScalar scaleX, SkScalar scaleY, const SkIRect& bounds, argument
53 : fKey(genID, scaleX, scaleY, bounds)
99 bool SkBitmapCache::Find(uint32_t genID, const SkIRect& subset, SkBitmap* result, argument
101 BitmapKey key(genID, SK_Scalar1, SK_Scalar1, subset);
106 bool SkBitmapCache::Add(uint32_t genID, const SkIRect& subset, const SkBitmap& result, argument
117 BitmapRec* rec = SkNEW_ARGS(BitmapRec, (genID, SK_Scalar1, SK_Scalar1, subset, result));
H A DSkPixelRef.cpp65 int32_t genID; local
67 genID = sk_atomic_inc(&gPixelRefGenerationID) + 1;
68 } while (0 == genID);
69 return genID;
119 // This is subtle. We must call that.getGenerationID() to make sure its genID isn't 0.
216 // We don't invalidate ourselves if we think another SkPixelRef is sharing our genID.
H A DSkPathRef.cpp210 // We've done the work to determine that these are equal. If either has a zero genID, copy
211 // the other's. If both are 0 then genID() will compute the next ID.
213 fGenerationID = ref.genID();
215 ref.fGenerationID = this->genID();
264 // We could call genID() here to force a real ID (instead of 0). However, if we're making
413 uint32_t SkPathRef::genID() const { function in class:SkPathRef
H A DSkPicture.cpp624 int32_t genID;
626 genID = sk_atomic_inc(&gPictureGenerationID) + 1;
627 } while (SK_InvalidGenID == genID);
628 return genID;
H A DSkPath.cpp293 uint32_t genID = fPathRef->genID(); local
296 genID |= static_cast<uint32_t>(fFillType) << kPathRefGenIDBitCnt;
298 return genID;
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DCanvas2DLayerBridgeTest.cpp152 uint32_t genID = surface->generationID(); local
154 EXPECT_EQ(genID, surface->generationID());
156 EXPECT_EQ(genID, surface->generationID());
158 EXPECT_EQ(genID, surface->generationID());
160 EXPECT_EQ(genID, surface->generationID());
162 EXPECT_EQ(genID, surface->generationID());
164 EXPECT_EQ(genID, surface->generationID());
/external/skia/src/core/
H A DSkPixelRef.cpp67 int32_t genID; local
69 genID = sk_atomic_inc(&gPixelRefGenerationID) + 1;
70 } while (0 == genID);
71 return genID;
147 // This is subtle. We must call that.getGenerationID() to make sure its genID isn't 0.
170 // is safe since the same genID will never refer to two different sets of
173 // trigger assignment of a new genID in playback.
261 // We don't invalidate ourselves if we think another SkPixelRef is sharing our genID.
H A DSkScaledImageCache.cpp59 Key(uint32_t genID, argument
63 : fGenID(genID)
319 SkScaledImageCache::Rec* SkScaledImageCache::findAndLock(uint32_t genID, argument
323 const Key key(genID, scaleX, scaleY, bounds);
360 SkScaledImageCache::ID* SkScaledImageCache::findAndLock(uint32_t genID, argument
364 Rec* rec = this->findAndLock(genID, SK_Scalar1, SK_Scalar1,
432 SkScaledImageCache::ID* SkScaledImageCache::addAndLock(uint32_t genID, argument
436 Key key(genID, SK_Scalar1, SK_Scalar1, SkIRect::MakeWH(width, height));
H A DSkPicture.cpp483 int32_t genID; local
485 genID = sk_atomic_inc(&gPictureGenerationID) + 1;
486 } while (SK_InvalidGenID == genID);
487 return genID;
H A DSkPathRef.cpp210 // We've done the work to determine that these are equal. If either has a zero genID, copy
211 // the other's. If both are 0 then genID() will compute the next ID.
213 fGenerationID = ref.genID();
215 ref.fGenerationID = this->genID();
264 // We could call genID() here to force a real ID (instead of 0). However, if we're making
413 uint32_t SkPathRef::genID() const { function in class:SkPathRef
H A DSkPath.cpp293 uint32_t genID = fPathRef->genID(); local
296 genID |= static_cast<uint32_t>(fFillType) << kPathRefGenIDBitCnt;
298 return genID;
/external/chromium_org/third_party/skia/src/pipe/
H A DSkGPipePriv.h166 BitmapInfo(SkBitmap* bitmap, uint32_t genID, int toBeDrawnCount) argument
168 , fGenID(genID)
/external/skia/src/pipe/
H A DSkGPipePriv.h164 BitmapInfo(SkBitmap* bitmap, uint32_t genID, int toBeDrawnCount) argument
166 , fGenID(genID)
/external/chromium_org/third_party/skia/src/utils/
H A DSkPictureUtils.cpp25 uint32_t genID = pr->getGenerationID(); local
26 if (fGenID.find(genID) < 0) {
28 *fGenID.append() = genID;
29 // SkDebugf("--- adding [%d] %x %d\n", fArray->count() - 1, pr, genID);
31 // SkDebugf("--- already have %x %d\n", pr, genID);
H A DSkLua.cpp509 int32_t genID; local
517 &genID,
978 setfield_number(L, "genID", bm.pixelRef() ? bm.pixelRef()->getGenerationID() : 0);
/external/skia/src/utils/
H A DSkPictureUtils.cpp25 uint32_t genID = pr->getGenerationID(); local
26 if (fGenID.find(genID) < 0) {
28 *fGenID.append() = genID;
29 // SkDebugf("--- adding [%d] %x %d\n", fArray->count() - 1, pr, genID);
31 // SkDebugf("--- already have %x %d\n", pr, genID);
H A DSkLua.cpp501 int32_t genID; local
509 &genID,
970 setfield_number(L, "genID", bm.pixelRef() ? bm.pixelRef()->getGenerationID() : 0);
/external/chromium_org/third_party/skia/src/gpu/
H A DGrClipMaskManager.cpp221 int32_t genID; local
240 &genID,
293 result = this->createSoftwareClipMask(genID,
298 result = this->createAlphaClipMask(genID,
328 this->createStencilClipMask(genID,
H A DSkGr.cpp90 uint32_t genID = bitmap.getGenerationID(); local
96 memcpy(key.fData8 + 0, &genID, 4);
118 // When the SkPixelRef genID changes, invalidate a corresponding GrResource described by key.
/external/skia/src/gpu/
H A DGrClipMaskManager.cpp219 int32_t genID; local
238 &genID,
291 result = this->createSoftwareClipMask(genID,
296 result = this->createAlphaClipMask(genID,
326 this->createStencilClipMask(genID,
H A DSkGr.cpp88 uint32_t genID = bitmap.getGenerationID(); local
94 memcpy(key.fData8 + 0, &genID, 4);
116 // When the SkPixelRef genID changes, invalidate a corresponding GrResource described by key.
/external/chromium_org/third_party/skia/include/core/
H A DSkPathRef.h255 uint32_t genID() const;
309 /** Makes additional room but does not change the counts or change the genID */
/external/skia/include/core/
H A DSkPathRef.h254 uint32_t genID() const;
306 /** Makes additional room but does not change the counts or change the genID */

Completed in 378 milliseconds