Lines Matching refs:cachedBitmap
105 SkBitmap cachedBitmap;
106 make_bitmap(&cachedBitmap, SkImageInfo::MakeN32Premul(5, 5), allocator);
107 cachedBitmap.setImmutable();
111 uint32_t cachedID = cachedBitmap.getGenerationID();
112 SkPixelRef* cachedPR = cachedBitmap.pixelRef();
115 REPORTER_ASSERT(reporter, !SkBitmapCache::Add(cachedPR, SkIRect::MakeWH(4, 6), cachedBitmap, cache));
118 REPORTER_ASSERT(reporter, !SkBitmapCache::Add(cachedPR, SkIRect::MakeXYWH(-1, 0, 5, 5), cachedBitmap, cache));
124 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedPR, rect, cachedBitmap, cache));
251 SkBitmap cachedBitmap;
252 make_bitmap(&cachedBitmap, SkImageInfo::MakeN32Premul(5, 5), allocator);
253 cachedBitmap.setImmutable();
254 cachedBitmap.unlockPixels();
260 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, cache));
261 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache));
264 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache));
274 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache));
277 make_bitmap(&cachedBitmap, SkImageInfo::MakeN32Premul(5, 5), allocator);
278 cachedBitmap.setImmutable();
279 cachedBitmap.unlockPixels();
282 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, cache));
283 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache));