Home
last modified time | relevance | path

Searched refs:SkMipmap (Results 1 – 25 of 37) sorted by relevance

12

/external/skia/tests/
DMipMapTest.cpp27 sk_sp<SkMipmap> mm(SkMipmap::Build(bm, nullptr)); in DEF_TEST()
29 REPORTER_ASSERT(reporter, mm->countLevels() == SkMipmap::ComputeLevelCount(width, height)); in DEF_TEST()
35 SkMipmap::Level prevLevel; in DEF_TEST()
42 SkMipmap::Level level; in DEF_TEST()
64 sk_sp<SkMipmap> mm(SkMipmap::Build(bm, nullptr)); in test_mipmap_generation()
68 REPORTER_ASSERT(reporter, mipLevelCount == SkMipmap::ComputeLevelCount(width, height)); in test_mipmap_generation()
70 SkMipmap::Level level; in test_mipmap_generation()
74 SkISize size = SkMipmap::ComputeLevelSize(width, height, i); in test_mipmap_generation()
94 sk_sp<SkMipmap> mm(SkMipmap::Build(bm, nullptr)); in DEF_TEST()
154 int levelCount = SkMipmap::ComputeLevelCount(currentTest.fWidth, currentTest.fHeight); in DEF_TEST()
[all …]
DSkResourceCacheTest.cpp49 const SkMipmap* mipmap = SkMipmapCache::FindAndRef(desc, cache); in test_mipmapcache()
56 const SkMipmap* mm = SkMipmapCache::FindAndRef(desc, cache); in test_mipmapcache()
94 const SkMipmap* mipmap = SkMipmapCache::FindAndRef(desc[i], cache); in test_mipmap_notify()
DCompressedBackendAllocationTest.cpp83 numMipLevels = SkMipmap::ComputeLevelCount(32, 32)+1; in check_compressed_mipmaps()
192 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in make_compressed_data()
/external/skia/src/core/
DSkMipmap.h32 class SkMipmap : public SkCachedData {
36 static SkMipmap* Build(const SkPixmap& src, SkDiscardableFactoryProc,
39 static SkMipmap* Build(const SkBitmap& src, SkDiscardableFactoryProc);
89 SkMipmap(void* malloc, size_t size) : INHERITED(malloc, size) {} in SkMipmap() function
90 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 SkImage_Base* image, SkResourceCache* localCache) { in AddAndRef()
293 SkMipmap* mipmap = SkMipmap::Build(src, get_fact(localCache)); in AddAndRef()
DSkMipmap.cpp387 size_t SkMipmap::AllocLevelsSize(int levelCount, size_t pixelSize) { in AllocLevelsSize()
398 SkMipmap* SkMipmap::Build(const SkPixmap& src, SkDiscardableFactoryProc fact, in Build()
559 size_t storageSize = SkMipmap::AllocLevelsSize(countLevels, size); in Build()
564 SkMipmap* mipmap; in Build()
570 mipmap = new SkMipmap(storageSize, dm); in Build()
572 mipmap = new SkMipmap(sk_malloc_throw(storageSize), storageSize); in Build()
656 int SkMipmap::ComputeLevelCount(int baseWidth, int baseHeight) { in ComputeLevelCount()
690 SkISize SkMipmap::ComputeLevelSize(int baseWidth, int baseHeight, int level) { in ComputeLevelSize()
717 float SkMipmap::ComputeLevel(SkSize scaleSize) { in ComputeLevel()
742 bool SkMipmap::extractLevel(SkSize scaleSize, Level* levelPtr) const { in extractLevel()
[all …]
DSkMipmapAccessor.cpp18 static sk_sp<const SkMipmap> try_load_mips(const SkImage_Base* image) { in try_load_mips()
19 sk_sp<const SkMipmap> mips = image->refMips(); in try_load_mips()
48 level = SkMipmap::ComputeLevel({1/scale.width(), 1/scale.height()}); in SkMipmapAccessor()
75 SkMipmap::Level levelRec; in SkMipmapAccessor()
DSkBitmapCache.h18 class SkMipmap; variable
61 static const SkMipmap* FindAndRef(const SkBitmapCacheDesc&,
63 static const SkMipmap* AddAndRef(const SkImage_Base*,
DSkMipmapBuilder.h32 sk_sp<SkMipmap> fMM;
DSkMipmapAccessor.h47 sk_sp<const SkMipmap> fCurrMip;
DSkWriteBuffer.cpp154 const SkMipmap* mips = as_IB(image)->onPeekMips(); in writeImage()
/external/skia/tools/gpu/
DManagedBackendTexture.cpp90 std::unique_ptr<SkMipmap> mm; in MakeFromPixmap()
93 mm.reset(SkMipmap::Build(src, nullptr)); in MakeFromPixmap()
98 SkMipmap::Level level; in MakeFromPixmap()
/external/skia/src/image/
DSkImage_Base.h54 virtual SkMipmap* onPeekMips() const { return nullptr; } in onPeekMips()
56 sk_sp<SkMipmap> refMips() const { in refMips()
163 virtual sk_sp<SkImage> onMakeWithMipmaps(sk_sp<SkMipmap>) const { in onMakeWithMipmaps() argument
DSkImage_Raster.cpp123 SkMipmap* onPeekMips() const override { return fBitmap.fMips.get(); } in onPeekMips()
125 sk_sp<SkImage> onMakeWithMipmaps(sk_sp<SkMipmap> mips) const override { in onMakeWithMipmaps()
130 img->fBitmap.fMips.reset(SkMipmap::Build(fBitmap.pixmap(), nullptr)); in onMakeWithMipmaps()
DSkImage.cpp763 fMM = sk_sp<SkMipmap>(SkMipmap::Build({info, nullptr, 0}, nullptr, false)); in SkMipmapBuilder()
775 SkMipmap::Level level; in level()
784 sk_sp<SkImage> SkImage::withMipmaps(sk_sp<SkMipmap> mips) const { in withMipmaps()
/external/skia/tools/
DDDLPromiseImageHelper.h22 class SkMipmap; variable
192 void setMipLevels(const SkBitmap& baseLevel, std::unique_ptr<SkMipmap> mipLevels);
205 std::unique_ptr<SkMipmap> fMipLevels;
DDDLPromiseImageHelper.cpp51 SkMipmap::Level mipLevel; in normalMipLevels()
65 std::unique_ptr<SkMipmap> mipLevels) { in setMipLevels()
428 std::unique_ptr<SkMipmap> mipmaps(SkMipmap::Build(tmp.pixmap(), nullptr)); in addImage()
/external/skia/bench/
DMipmapBench.cpp45 SkMipmap::Build(fBitmap, nullptr)->unref(); in onDraw()
/external/skia/src/gpu/
DGrProxyProvider.cpp290 0 == SkMipmap::ComputeLevelCount(copyBitmap.width(), copyBitmap.height())) { in createProxyFromBitmap()
353 sk_sp<SkMipmap> mipmaps(SkMipmap::Build(bitmap.pixmap(), nullptr)); in createMippedProxyFromBitmap()
370 SkMipmap::Level generatedMipLevel; in createMippedProxyFromBitmap()
417 int mipCount = SkMipmap::ComputeLevelCount(dimensions.fWidth, dimensions.fHeight) + 1; in createProxy()
DGrTexture.cpp51 fMaxMipmapLevel = SkMipmap::ComputeLevelCount(this->width(), this->height()); in GrTexture()
/external/skia/include/core/
DSkBitmap.h22 class SkMipmap; variable
1189 sk_sp<SkMipmap> fMips;
DSkImage.h31 class SkMipmap; variable
1258 sk_sp<SkImage> withMipmaps(sk_sp<SkMipmap>) const;
/external/skia/gm/
Dcompressed_textures.cpp113 int numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in make_compressed_image()
271 int numMipLevels = SkMipmap::ComputeLevelCount(levelDimensions.width(), in drawCell()
Dexoticformats.cpp121 int numRequiredMipLevels = SkMipmap::ComputeLevelCount(pixelWidth, pixelHeight)+1; in load_ktx()
262 int numRequiredLevels = SkMipmap::ComputeLevelCount(header.dwWidth, header.dwHeight)+1; in load_dds()
/external/skia/src/gpu/d3d/
DGrD3DGpu.cpp359 mipLevelCount = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in onCreateCompressedTexture()
934 SkASSERT((int)levelCount == SkMipmap::ComputeLevelCount(tex->width(), tex->height()) + 1); in onRegenerateMipMapLevels()
1092 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in createTextureResourceForBackendSurface()
1216 mipLevelCount = SkMipmap::ComputeLevelCount(backendTexture.dimensions()) + 1; in onClearBackendTexture()
1319 mipLevelCount = SkMipmap::ComputeLevelCount(backendTexture.dimensions().width(), in onUpdateCompressedBackendTexture()

12