Home
last modified time | relevance | path

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

12

/external/skia/tests/
DMipMapTest.cpp26 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 …]
DSkResourceCacheTest.cpp51 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/
DMipMapTest.cpp26 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 …]
DSkResourceCacheTest.cpp51 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/
DSkMipMap.h30 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
DSkBitmapCache.cpp233 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()
DSkMipMap.cpp303 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 …]
DSkBitmapCache.h18 class SkMipMap; variable
61 static const SkMipMap* FindAndRef(const SkBitmapCacheDesc&,
63 static const SkMipMap* AddAndRef(const SkBitmapProvider&,
DSkBitmapController.h42 sk_sp<const SkMipMap> fCurrMip;
/external/skqp/src/core/
DSkMipMap.h30 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
DSkBitmapCache.cpp233 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()
DSkMipMap.cpp303 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 …]
DSkBitmapCache.h18 class SkMipMap; variable
61 static const SkMipMap* FindAndRef(const SkBitmapCacheDesc&,
63 static const SkMipMap* AddAndRef(const SkBitmapProvider&,
DSkBitmapController.h42 sk_sp<const SkMipMap> fCurrMip;
DSkBitmapController.cpp91 SkMipMap::Level level; in processMediumRequest()
/external/skia/gm/
Dshowmiplevels.cpp138 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/
Dshowmiplevels.cpp138 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/
DGrProxyProvider.cpp305 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()
DGrTextureProducer.cpp236 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/
DGrProxyProvider.cpp321 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()
DGrTextureProducer.cpp269 int mipCount = SkMipMap::ComputeLevelCount(this->width(), this->height()); in refTextureProxyForParams()
293 int mipCount = SkMipMap::ComputeLevelCount(this->width(), this->height()); in refTextureProxy()
/external/skqp/bench/
DMipMapBench.cpp45 SkMipMap::Build(fBitmap, nullptr)->unref(); in onDraw()
/external/skia/bench/
DMipMapBench.cpp45 SkMipMap::Build(fBitmap, nullptr)->unref(); in onDraw()
/external/skia/tools/fiddle/
Dfiddle_main.cpp153 ? 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/
Dfiddle_main.cpp153 ? SkMipMap::ComputeLevelCount(bm.width(), bm.height()) in setup_backend_objects()
208 ? SkMipMap::ComputeLevelCount(backingDesc.fWidth, backingDesc.fHeight) in setup_backend_objects()

12