Home
last modified time | relevance | path

Searched refs:ComputeLevelCount (Results 1 – 18 of 18) sorted by relevance

/third_party/skia/src/core/
DSkMipmap.h44 static int ComputeLevelCount(int baseWidth, int baseHeight);
45 static int ComputeLevelCount(SkISize s) { return ComputeLevelCount(s.width(), s.height()); } in ComputeLevelCount() function
DSkMipmap.cpp556 int countLevels = ComputeLevelCount(src.width(), src.height()); in Build()
659 int SkMipmap::ComputeLevelCount(int baseWidth, int baseHeight) { in ComputeLevelCount() function in SkMipmap
698 int maxLevelCount = ComputeLevelCount(baseWidth, baseHeight); in ComputeLevelSize()
DSkCompressedDataUtils.cpp255 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in SkCompressedDataSize()
/third_party/skia/tests/
DMipMapTest.cpp29 REPORTER_ASSERT(reporter, mm->countLevels() == SkMipmap::ComputeLevelCount(width, height)); in DEF_TEST()
68 REPORTER_ASSERT(reporter, mipLevelCount == SkMipmap::ComputeLevelCount(width, height)); in test_mipmap_generation()
154 int levelCount = SkMipmap::ComputeLevelCount(currentTest.fWidth, currentTest.fHeight); in DEF_TEST()
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()
/third_party/skia/gm/
Dcompressed_textures.cpp111 int numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in make_compressed_image()
269 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()
/third_party/skia/src/gpu/
DGrTexture.cpp52 fMaxMipmapLevel = SkMipmap::ComputeLevelCount(this->width(), this->height()); in GrTexture()
DGrProxyProvider.cpp317 0 == SkMipmap::ComputeLevelCount(copyBitmap.width(), copyBitmap.height())) { in createProxyFromBitmap()
460 int mipCount = SkMipmap::ComputeLevelCount(dimensions.fWidth, dimensions.fHeight) + 1; in createProxy()
DGrResourceProvider.cpp62 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.fWidth, dimensions.fHeight) + 1; in createTexture()
DGrDataUtils.cpp382 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in GrFillInCompressedData()
DGrDirectContext.cpp791 numExpectedLevels = SkMipmap::ComputeLevelCount(backendTexture.width(), in updateBackendTexture()
DSurfaceContext.cpp302 if (numLevels != SkMipmap::ComputeLevelCount(dims) + 1) { in writePixels()
/third_party/skia/src/gpu/d3d/
DGrD3DGpu.cpp360 mipLevelCount = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in onCreateCompressedTexture()
1123 SkASSERT((int)levelCount == SkMipmap::ComputeLevelCount(tex->width(), tex->height()) + 1); in onRegenerateMipMapLevels()
1294 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in createTextureResourceForBackendSurface()
1418 mipLevelCount = SkMipmap::ComputeLevelCount(backendTexture.dimensions()) + 1; in onClearBackendTexture()
1521 mipLevelCount = SkMipmap::ComputeLevelCount(backendTexture.dimensions().width(), in onUpdateCompressedBackendTexture()
/third_party/skia/src/gpu/vk/
DGrVkGpu.cpp810 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in fill_in_compressed_regions()
1114 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height())+1; in onCreateCompressedTexture()
1425 uint32_t levelCount = SkMipmap::ComputeLevelCount(tex->width(), tex->height()) + 1; in onRegenerateMipMapLevels()
1571 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in createVkImageForBackendSurface()
/third_party/skia/src/gpu/dawn/
DGrDawnGpu.cpp330 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in onCreateBackendTexture()
677 uint32_t levelCount = SkMipmap::ComputeLevelCount(tex->width(), tex->height()) + 1; in onRegenerateMipMapLevels()
/third_party/skia/src/gpu/gl/
DGrGLGpu.cpp1008 int numLevels = SkMipmap::ComputeLevelCount(texDims) + 1; in uploadColorToTex()
1044 SkASSERT(mipLevelCount > 0 && mipLevelCount <= SkMipmap::ComputeLevelCount(texDims) + 1); in uploadTexData()
1101 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height())+1; in uploadCompressedTexData()
1569 SkMipmap::ComputeLevelCount(backendTexture.width(), backendTexture.height()) + 1; in onUpdateCompressedBackendTexture()
3481 int levelCount = SkMipmap::ComputeLevelCount(width, height) + 1; in onRegenerateMipMapLevels()
3626 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in onCreateBackendTexture()
3682 SkMipmap::ComputeLevelCount(backendTexture.width(), backendTexture.height()) + 1; in onClearBackendTexture()
/third_party/skia/src/gpu/mtl/
DGrMtlGpu.mm608 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1;