/external/skia/tests/ |
D | MipMapTest.cpp | 26 sk_sp<SkMipMap> mm(SkMipMap::Build(bm, nullptr)); in DEF_TEST() 28 REPORTER_ASSERT(reporter, mm->countLevels() == SkMipMap::ComputeLevelCount(width, height)); in DEF_TEST() 34 SkMipMap::Level prevLevel; in DEF_TEST() 41 SkMipMap::Level level; in DEF_TEST() 63 sk_sp<SkMipMap> mm(SkMipMap::Build(bm, nullptr)); in test_mipmap_generation() 67 REPORTER_ASSERT(reporter, mipLevelCount == SkMipMap::ComputeLevelCount(width, height)); in test_mipmap_generation() 69 SkMipMap::Level level; in test_mipmap_generation() 73 SkISize size = SkMipMap::ComputeLevelSize(width, height, i); in test_mipmap_generation() 93 sk_sp<SkMipMap> mm(SkMipMap::Build(bm, nullptr)); in DEF_TEST() 153 int levelCount = SkMipMap::ComputeLevelCount(currentTest.fWidth, currentTest.fHeight); in DEF_TEST() [all …]
|
D | SkResourceCacheTest.cpp | 51 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(desc, cache); in test_mipmapcache() 58 const SkMipMap* mm = SkMipMapCache::FindAndRef(desc, cache); in test_mipmapcache() 97 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(desc[i], cache); in test_mipmap_notify()
|
/external/skqp/tests/ |
D | MipMapTest.cpp | 26 sk_sp<SkMipMap> mm(SkMipMap::Build(bm, nullptr)); in DEF_TEST() 28 REPORTER_ASSERT(reporter, mm->countLevels() == SkMipMap::ComputeLevelCount(width, height)); in DEF_TEST() 34 SkMipMap::Level prevLevel; in DEF_TEST() 41 SkMipMap::Level level; in DEF_TEST() 63 sk_sp<SkMipMap> mm(SkMipMap::Build(bm, nullptr)); in test_mipmap_generation() 67 REPORTER_ASSERT(reporter, mipLevelCount == SkMipMap::ComputeLevelCount(width, height)); in test_mipmap_generation() 69 SkMipMap::Level level; in test_mipmap_generation() 73 SkISize size = SkMipMap::ComputeLevelSize(width, height, i); in test_mipmap_generation() 93 sk_sp<SkMipMap> mm(SkMipMap::Build(bm, nullptr)); in DEF_TEST() 153 int levelCount = SkMipMap::ComputeLevelCount(currentTest.fWidth, currentTest.fHeight); in DEF_TEST() [all …]
|
D | SkResourceCacheTest.cpp | 51 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(desc, cache); in test_mipmapcache() 58 const SkMipMap* mm = SkMipMapCache::FindAndRef(desc, cache); in test_mipmapcache() 97 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(desc[i], cache); in test_mipmap_notify()
|
/external/skia/src/core/ |
D | SkMipMap.h | 30 class SkMipMap : public SkCachedData { 32 static SkMipMap* Build(const SkPixmap& src, SkDiscardableFactoryProc); 33 static SkMipMap* Build(const SkBitmap& src, SkDiscardableFactoryProc); 74 SkMipMap(void* malloc, size_t size) : INHERITED(malloc, size) {} in SkMipMap() function 75 SkMipMap(size_t size, SkDiscardableMemory* dm) : INHERITED(size, dm) {} in SkMipMap() function
|
D | SkBitmapCache.cpp | 233 MipMapRec(const SkBitmapCacheDesc& desc, const SkMipMap* result) in MipMapRec() 253 const SkMipMap* mm = SkRef(rec.fMipMap); in Finder() 261 *(const SkMipMap**)contextMip = mm; in Finder() 267 const SkMipMap* fMipMap; 271 const SkMipMap* SkMipMapCache::FindAndRef(const SkBitmapCacheDesc& desc, in FindAndRef() 274 const SkMipMap* result; in FindAndRef() 287 const SkMipMap* SkMipMapCache::AddAndRef(const SkBitmapProvider& provider, in AddAndRef() 294 SkMipMap* mipmap = SkMipMap::Build(src, get_fact(localCache)); in AddAndRef()
|
D | SkMipMap.cpp | 303 size_t SkMipMap::AllocLevelsSize(int levelCount, size_t pixelSize) { in AllocLevelsSize() 314 SkMipMap* SkMipMap::Build(const SkPixmap& src, SkDiscardableFactoryProc fact) { in Build() 398 size_t storageSize = SkMipMap::AllocLevelsSize(countLevels, size); in Build() 403 SkMipMap* mipmap; in Build() 409 mipmap = new SkMipMap(storageSize, dm); in Build() 411 mipmap = new SkMipMap(sk_malloc_throw(storageSize), storageSize); in Build() 493 int SkMipMap::ComputeLevelCount(int baseWidth, int baseHeight) { in ComputeLevelCount() 527 SkISize SkMipMap::ComputeLevelSize(int baseWidth, int baseHeight, int level) { in ComputeLevelSize() 552 bool SkMipMap::extractLevel(const SkSize& scaleSize, Level* levelPtr) const { in extractLevel() 598 SkMipMap* SkMipMap::Build(const SkBitmap& src, SkDiscardableFactoryProc fact) { in Build() [all …]
|
D | SkBitmapCache.h | 18 class SkMipMap; variable 61 static const SkMipMap* FindAndRef(const SkBitmapCacheDesc&, 63 static const SkMipMap* AddAndRef(const SkBitmapProvider&,
|
D | SkBitmapController.h | 42 sk_sp<const SkMipMap> fCurrMip;
|
/external/skqp/src/core/ |
D | SkMipMap.h | 30 class SkMipMap : public SkCachedData { 32 static SkMipMap* Build(const SkPixmap& src, SkDiscardableFactoryProc); 33 static SkMipMap* Build(const SkBitmap& src, SkDiscardableFactoryProc); 74 SkMipMap(void* malloc, size_t size) : INHERITED(malloc, size) {} in SkMipMap() function 75 SkMipMap(size_t size, SkDiscardableMemory* dm) : INHERITED(size, dm) {} in SkMipMap() function
|
D | SkBitmapCache.cpp | 233 MipMapRec(const SkBitmapCacheDesc& desc, const SkMipMap* result) in MipMapRec() 253 const SkMipMap* mm = SkRef(rec.fMipMap); in Finder() 261 *(const SkMipMap**)contextMip = mm; in Finder() 267 const SkMipMap* fMipMap; 271 const SkMipMap* SkMipMapCache::FindAndRef(const SkBitmapCacheDesc& desc, in FindAndRef() 274 const SkMipMap* result; in FindAndRef() 287 const SkMipMap* SkMipMapCache::AddAndRef(const SkBitmapProvider& provider, in AddAndRef() 294 SkMipMap* mipmap = SkMipMap::Build(src, get_fact(localCache)); in AddAndRef()
|
D | SkMipMap.cpp | 303 size_t SkMipMap::AllocLevelsSize(int levelCount, size_t pixelSize) { in AllocLevelsSize() 314 SkMipMap* SkMipMap::Build(const SkPixmap& src, SkDiscardableFactoryProc fact) { in Build() 397 size_t storageSize = SkMipMap::AllocLevelsSize(countLevels, size); in Build() 402 SkMipMap* mipmap; in Build() 408 mipmap = new SkMipMap(storageSize, dm); in Build() 410 mipmap = new SkMipMap(sk_malloc_throw(storageSize), storageSize); in Build() 492 int SkMipMap::ComputeLevelCount(int baseWidth, int baseHeight) { in ComputeLevelCount() 526 SkISize SkMipMap::ComputeLevelSize(int baseWidth, int baseHeight, int level) { in ComputeLevelSize() 551 bool SkMipMap::extractLevel(const SkSize& scaleSize, Level* levelPtr) const { in extractLevel() 597 SkMipMap* SkMipMap::Build(const SkBitmap& src, SkDiscardableFactoryProc fact) { in Build() [all …]
|
D | SkBitmapCache.h | 18 class SkMipMap; variable 61 static const SkMipMap* FindAndRef(const SkBitmapCacheDesc&, 63 static const SkMipMap* AddAndRef(const SkBitmapProvider&,
|
D | SkBitmapController.h | 42 sk_sp<const SkMipMap> fCurrMip;
|
D | SkBitmapController.cpp | 91 SkMipMap::Level level; in processMediumRequest()
|
/external/skia/gm/ |
D | showmiplevels.cpp | 138 sk_sp<SkMipMap> mm(SkMipMap::Build(baseBM, nullptr)); in drawLevels() 141 SkMipMap::Level level; in drawLevels() 246 sk_sp<SkMipMap> mm(SkMipMap::Build(baseBM, nullptr)); in drawLevels() 249 SkMipMap::Level level; in drawLevels()
|
/external/skqp/gm/ |
D | showmiplevels.cpp | 138 sk_sp<SkMipMap> mm(SkMipMap::Build(baseBM, nullptr)); in drawLevels() 141 SkMipMap::Level level; in drawLevels() 246 sk_sp<SkMipMap> mm(SkMipMap::Build(baseBM, nullptr)); in drawLevels() 249 SkMipMap::Level level; in drawLevels()
|
/external/skqp/src/gpu/ |
D | GrProxyProvider.cpp | 305 if (0 == SkMipMap::ComputeLevelCount(baseLevel->width(), baseLevel->height())) { in createMipMapProxyFromBitmap() 329 sk_sp<SkMipMap> mipmaps(SkMipMap::Build(pixmap, nullptr)); in createMipMapProxyFromBitmap() 352 SkMipMap::Level generatedMipLevel; in createMipMapProxyFromBitmap() 388 int mipCount = SkMipMap::ComputeLevelCount(desc.fWidth, desc.fHeight) + 1; in createProxy()
|
D | GrTextureProducer.cpp | 236 int mipCount = SkMipMap::ComputeLevelCount(this->width(), this->height()); in refTextureProxyForParams() 260 int mipCount = SkMipMap::ComputeLevelCount(this->width(), this->height()); in refTextureProxy()
|
/external/skia/src/gpu/ |
D | GrProxyProvider.cpp | 321 if (0 == SkMipMap::ComputeLevelCount(baseLevel->width(), baseLevel->height())) { in createMipMapProxyFromBitmap() 346 sk_sp<SkMipMap> mipmaps(SkMipMap::Build(pixmap, nullptr)); in createMipMapProxyFromBitmap() 365 SkMipMap::Level generatedMipLevel; in createMipMapProxyFromBitmap() 403 int mipCount = SkMipMap::ComputeLevelCount(desc.fWidth, desc.fHeight) + 1; in createProxy()
|
D | GrTextureProducer.cpp | 269 int mipCount = SkMipMap::ComputeLevelCount(this->width(), this->height()); in refTextureProxyForParams() 293 int mipCount = SkMipMap::ComputeLevelCount(this->width(), this->height()); in refTextureProxy()
|
/external/skqp/bench/ |
D | MipMapBench.cpp | 45 SkMipMap::Build(fBitmap, nullptr)->unref(); in onDraw()
|
/external/skia/bench/ |
D | MipMapBench.cpp | 45 SkMipMap::Build(fBitmap, nullptr)->unref(); in onDraw()
|
/external/skia/tools/fiddle/ |
D | fiddle_main.cpp | 153 ? SkMipMap::ComputeLevelCount(bm.width(), bm.height()) in setup_backend_objects() 208 ? SkMipMap::ComputeLevelCount(backingDesc.fWidth, backingDesc.fHeight) in setup_backend_objects()
|
/external/skqp/tools/fiddle/ |
D | fiddle_main.cpp | 153 ? SkMipMap::ComputeLevelCount(bm.width(), bm.height()) in setup_backend_objects() 208 ? SkMipMap::ComputeLevelCount(backingDesc.fWidth, backingDesc.fHeight) in setup_backend_objects()
|