Searched refs:SkMipMap (Results 1 – 11 of 11) sorted by relevance
/external/skia/tests/ |
D | MipMapTest.cpp | 28 SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(bm, nullptr)); in DEF_TEST() 30 REPORTER_ASSERT(reporter, mm->countLevels() == SkMipMap::ComputeLevelCount(width, height)); in DEF_TEST() 36 SkMipMap::Level prevLevel; in DEF_TEST() 43 SkMipMap::Level level; in DEF_TEST() 65 SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(bm, nullptr)); in test_mipmap_generation() 70 SkMipMap::Level level; in test_mipmap_generation() 91 SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(bm, nullptr)); in DEF_TEST() 151 int levelCount = SkMipMap::ComputeLevelCount(currentTest.fWidth, currentTest.fHeight); in DEF_TEST()
|
D | SkResourceCacheTest.cpp | 99 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(SkBitmapCacheDesc::Make(src), cache); in test_mipmapcache() 106 const SkMipMap* mm = SkMipMapCache::FindAndRef(SkBitmapCacheDesc::Make(src), cache); in test_mipmapcache() 139 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(SkBitmapCacheDesc::Make(src[i]), cache); in test_mipmap_notify()
|
/external/skia/src/core/ |
D | SkMipMap.h | 21 class SkMipMap : public SkCachedData { 23 static SkMipMap* Build(const SkPixmap& src, SkDiscardableFactoryProc); 24 static SkMipMap* Build(const SkBitmap& src, SkDiscardableFactoryProc); 49 SkMipMap(void* malloc, size_t size) : INHERITED(malloc, size) {} in SkMipMap() function 50 SkMipMap(size_t size, SkDiscardableMemory* dm) : INHERITED(size, dm) {} in SkMipMap() function
|
D | SkMipMap.cpp | 180 size_t SkMipMap::AllocLevelsSize(int levelCount, size_t pixelSize) { in AllocLevelsSize() 191 SkMipMap* SkMipMap::Build(const SkPixmap& src, SkDiscardableFactoryProc fact) { in Build() 254 SkASSERT(countLevels == SkMipMap::ComputeLevelCount(src.width(), src.height())); in Build() 256 size_t storageSize = SkMipMap::AllocLevelsSize(countLevels, size); in Build() 261 SkMipMap* mipmap; in Build() 267 mipmap = new SkMipMap(storageSize, dm); in Build() 269 mipmap = new SkMipMap(sk_malloc_throw(storageSize), storageSize); in Build() 325 int SkMipMap::ComputeLevelCount(int baseWidth, int baseHeight) { in ComputeLevelCount() 367 bool SkMipMap::extractLevel(const SkSize& scaleSize, Level* levelPtr) const { in extractLevel() 413 SkMipMap* SkMipMap::Build(const SkBitmap& src, SkDiscardableFactoryProc fact) { in Build() [all …]
|
D | SkBitmapCache.cpp | 243 MipMapRec(const SkBitmap& src, const SkMipMap* result) in MipMapRec() 263 const SkMipMap* mm = SkRef(rec.fMipMap); in Finder() 271 *(const SkMipMap**)contextMip = mm; in Finder() 277 const SkMipMap* fMipMap; 281 const SkMipMap* SkMipMapCache::FindAndRef(const SkBitmapCacheDesc& desc, in FindAndRef() 285 const SkMipMap* result; in FindAndRef() 298 const SkMipMap* SkMipMapCache::AddAndRef(const SkBitmap& src, SkResourceCache* localCache) { in AddAndRef() 299 SkMipMap* mipmap = SkMipMap::Build(src, get_fact(localCache)); in AddAndRef()
|
D | SkBitmapCache.h | 16 class SkMipMap; variable 76 static const SkMipMap* FindAndRef(const SkBitmapCacheDesc&, 78 static const SkMipMap* AddAndRef(const SkBitmap& src, SkResourceCache* localCache = nullptr);
|
D | SkBitmapController.cpp | 51 SkAutoTUnref<const SkMipMap> fCurrMip; 185 SkMipMap::Level level; in processMediumRequest()
|
/external/skia/gm/ |
D | showmiplevels.cpp | 148 SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(baseBM, nullptr)); in drawLevels() 151 SkMipMap::Level level; in drawLevels() 256 SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(baseBM, nullptr)); in drawLevels() 259 SkMipMap::Level level; in drawLevels()
|
/external/skia/bench/ |
D | MipMapBench.cpp | 36 SkMipMap::Build(fBitmap, nullptr)->unref(); in onDraw()
|
/external/skia/gyp/ |
D | core.gypi | 173 '<(skia_src_path)/core/SkMipMap.cpp', 174 '<(skia_src_path)/core/SkMipMap.h',
|
/external/skia/ |
D | Android.mk | 189 src/core/SkMipMap.cpp \
|