Home
last modified time | relevance | path

Searched refs:SkMipMap (Results 1 – 11 of 11) sorted by relevance

/external/skia/tests/
DMipMapTest.cpp28 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()
DSkResourceCacheTest.cpp99 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/
DSkMipMap.h21 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
DSkMipMap.cpp180 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 …]
DSkBitmapCache.cpp243 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()
DSkBitmapCache.h16 class SkMipMap; variable
76 static const SkMipMap* FindAndRef(const SkBitmapCacheDesc&,
78 static const SkMipMap* AddAndRef(const SkBitmap& src, SkResourceCache* localCache = nullptr);
DSkBitmapController.cpp51 SkAutoTUnref<const SkMipMap> fCurrMip;
185 SkMipMap::Level level; in processMediumRequest()
/external/skia/gm/
Dshowmiplevels.cpp148 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/
DMipMapBench.cpp36 SkMipMap::Build(fBitmap, nullptr)->unref(); in onDraw()
/external/skia/gyp/
Dcore.gypi173 '<(skia_src_path)/core/SkMipMap.cpp',
174 '<(skia_src_path)/core/SkMipMap.h',
/external/skia/
DAndroid.mk189 src/core/SkMipMap.cpp \