Home
last modified time | relevance | path

Searched refs:cachedBitmap (Results 1 – 2 of 2) sorted by relevance

/external/skia/tests/
DSkResourceCacheTest.cpp105 SkBitmap cachedBitmap; in DEF_TEST() local
106 make_bitmap(&cachedBitmap, SkImageInfo::MakeN32Premul(5, 5), allocator); in DEF_TEST()
107 cachedBitmap.setImmutable(); in DEF_TEST()
111 uint32_t cachedID = cachedBitmap.getGenerationID(); in DEF_TEST()
112 SkPixelRef* cachedPR = cachedBitmap.pixelRef(); in DEF_TEST()
115 …REPORTER_ASSERT(reporter, !SkBitmapCache::Add(cachedPR, SkIRect::MakeWH(4, 6), cachedBitmap, cache… in DEF_TEST()
118 …SERT(reporter, !SkBitmapCache::Add(cachedPR, SkIRect::MakeXYWH(-1, 0, 5, 5), cachedBitmap, cache)); in DEF_TEST()
124 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedPR, rect, cachedBitmap, cache)); in DEF_TEST()
251 SkBitmap cachedBitmap; in DEF_TEST() local
252 make_bitmap(&cachedBitmap, SkImageInfo::MakeN32Premul(5, 5), allocator); in DEF_TEST()
[all …]
/external/skia/src/gpu/
DSkGrPixelRef.cpp170 SkBitmap cachedBitmap; in onReadPixels() local
171 cachedBitmap.setInfo(this->info().makeWH(bounds.width(), bounds.height())); in onReadPixels()
174 if (!tryAllocBitmapPixels(&cachedBitmap)) { in onReadPixels()
179 void* buffer = cachedBitmap.getPixels(); in onReadPixels()
183 buffer, cachedBitmap.rowBytes()); in onReadPixels()
190 cachedBitmap.setImmutable(); in onReadPixels()
192 SkBitmapCache::Add(this, bounds, cachedBitmap); in onReadPixels()
194 dst->swap(cachedBitmap); in onReadPixels()