Searched refs:cachedBitmap (Results 1 - 2 of 2) sorted by relevance
/external/skia/tests/ |
H A D | SkResourceCacheTest.cpp | 105 SkBitmap cachedBitmap; local 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; local 252 make_bitmap(&cachedBitmap, SkImageInf [all...] |
/external/skia/src/gpu/ |
H A D | SkGrPixelRef.cpp | 170 SkBitmap cachedBitmap; local 171 cachedBitmap.setInfo(this->info().makeWH(bounds.width(), bounds.height())); 174 if (!tryAllocBitmapPixels(&cachedBitmap)) { 179 void* buffer = cachedBitmap.getPixels(); 183 buffer, cachedBitmap.rowBytes()); 190 cachedBitmap.setImmutable(); 192 SkBitmapCache::Add(this, bounds, cachedBitmap); 194 dst->swap(cachedBitmap);
|
Completed in 112 milliseconds