8#ifndef SkMipmap_DEFINED
9#define SkMipmap_DEFINED
45 bool computeContents =
true);
91 fLevels = (
Level*)newData;
102 static size_t AllocLevelsSize(
int levelCount,
size_t pixelSize);
SkDiscardableMemory *(* SkDiscardableFactoryProc)(size_t bytes)
static SkMipmap * Build(const SkPixmap &src, SkDiscardableFactoryProc, bool computeContents=true)
static float ComputeLevel(SkSize scaleSize)
static SkISize ComputeLevelSize(SkISize s, int level)
bool validForRootLevel(const SkImageInfo &) const
static SkISize ComputeLevelSize(int baseWidth, int baseHeight, int level)
static std::unique_ptr< SkMipmapDownSampler > MakeDownSampler(const SkPixmap &)
bool extractLevel(SkSize scale, Level *) const
static int ComputeLevelCount(SkISize s)
bool getLevel(int index, Level *) const
void onDataChange(void *oldData, void *newData) override
static int ComputeLevelCount(int baseWidth, int baseHeight)
void * malloc(size_t size)
virtual void buildLevel(const SkPixmap &dst, const SkPixmap &src)=0
virtual ~SkMipmapDownSampler()