/external/skia/tests/ |
D | MipMapTest.cpp | 27 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 …]
|
D | SkResourceCacheTest.cpp | 49 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()
|
D | CompressedBackendAllocationTest.cpp | 83 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/ |
D | SkMipmap.h | 32 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
|
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 SkImage_Base* image, SkResourceCache* localCache) { in AddAndRef() 293 SkMipmap* mipmap = SkMipmap::Build(src, get_fact(localCache)); in AddAndRef()
|
D | SkMipmap.cpp | 387 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 …]
|
D | SkMipmapAccessor.cpp | 18 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()
|
D | SkBitmapCache.h | 18 class SkMipmap; variable 61 static const SkMipmap* FindAndRef(const SkBitmapCacheDesc&, 63 static const SkMipmap* AddAndRef(const SkImage_Base*,
|
D | SkMipmapBuilder.h | 32 sk_sp<SkMipmap> fMM;
|
D | SkMipmapAccessor.h | 47 sk_sp<const SkMipmap> fCurrMip;
|
D | SkWriteBuffer.cpp | 154 const SkMipmap* mips = as_IB(image)->onPeekMips(); in writeImage()
|
/external/skia/tools/gpu/ |
D | ManagedBackendTexture.cpp | 90 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/ |
D | SkImage_Base.h | 54 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
|
D | SkImage_Raster.cpp | 123 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()
|
D | SkImage.cpp | 763 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/ |
D | DDLPromiseImageHelper.h | 22 class SkMipmap; variable 192 void setMipLevels(const SkBitmap& baseLevel, std::unique_ptr<SkMipmap> mipLevels); 205 std::unique_ptr<SkMipmap> fMipLevels;
|
D | DDLPromiseImageHelper.cpp | 51 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/ |
D | MipmapBench.cpp | 45 SkMipmap::Build(fBitmap, nullptr)->unref(); in onDraw()
|
/external/skia/src/gpu/ |
D | GrProxyProvider.cpp | 290 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()
|
D | GrTexture.cpp | 51 fMaxMipmapLevel = SkMipmap::ComputeLevelCount(this->width(), this->height()); in GrTexture()
|
/external/skia/include/core/ |
D | SkBitmap.h | 22 class SkMipmap; variable 1189 sk_sp<SkMipmap> fMips;
|
D | SkImage.h | 31 class SkMipmap; variable 1258 sk_sp<SkImage> withMipmaps(sk_sp<SkMipmap>) const;
|
/external/skia/gm/ |
D | compressed_textures.cpp | 113 int numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in make_compressed_image() 271 int numMipLevels = SkMipmap::ComputeLevelCount(levelDimensions.width(), in drawCell()
|
D | exoticformats.cpp | 121 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/ |
D | GrD3DGpu.cpp | 359 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()
|