#include "src/base/SkBlockAllocator.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkTo.h"
#ifdef SK_DEBUG
#include <vector>
#endif
SkBlockAllocator::SkBlockAllocator(GrowthPolicy policy, size_t blockIncrementBytes,
size_t additionalPreallocBytes)
: … { … }
SkBlockAllocator::Block::Block(Block* prev, int allocationSize)
: … { … }
SkBlockAllocator::Block::~Block() { … }
size_t SkBlockAllocator::totalSize() const { … }
size_t SkBlockAllocator::totalUsableSpace() const { … }
size_t SkBlockAllocator::totalSpaceInUse() const { … }
SkBlockAllocator::Block* SkBlockAllocator::findOwningBlock(const void* p) { … }
void SkBlockAllocator::releaseBlock(Block* block) { … }
void SkBlockAllocator::stealHeapBlocks(SkBlockAllocator* other) { … }
void SkBlockAllocator::reset() { … }
void SkBlockAllocator::resetScratchSpace() { … }
void SkBlockAllocator::addBlock(int minSize, int maxSize) { … }
#ifdef SK_DEBUG
void SkBlockAllocator::validate() const { … }
#endif