Home | History | Annotate | Download | only in core

Lines Matching refs:SkMipMap

8 #include "SkMipMap.h"
303 size_t SkMipMap::AllocLevelsSize(int levelCount, size_t pixelSize) {
314 SkMipMap* SkMipMap::Build(const SkPixmap& src, SkDiscardableFactoryProc fact) {
397 size_t storageSize = SkMipMap::AllocLevelsSize(countLevels, size);
402 SkMipMap* mipmap;
408 mipmap = new SkMipMap(storageSize, dm);
410 mipmap = new SkMipMap(sk_malloc_throw(storageSize), storageSize);
428 // large as 8 (for F16 pixels). See the comment on SkMipMap::Level.
492 int SkMipMap::ComputeLevelCount(int baseWidth, int baseHeight) {
504 // SkMipMap::Build requires a minimum size of 2.
515 // SkMipMap does not include the base mip level.
517 // This is because the image used to create SkMipMap is the base level.
526 SkISize SkMipMap::ComputeLevelSize(int baseWidth, int baseHeight, int level) {
539 // SkMipMap does not include the base mip level.
541 // This is because the image used to create SkMipMap is the base level.
542 // So subtract 1 from the mip level to get the index stored by SkMipMap.
551 bool SkMipMap::extractLevel(const SkSize& scaleSize, Level* levelPtr) const {
597 SkMipMap* SkMipMap::Build(const SkBitmap& src, SkDiscardableFactoryProc fact) {
605 int SkMipMap::countLevels() const {
609 bool SkMipMap::getLevel(int index, Level* levelPtr) const {