#include "src/text/gpu/SubRunAllocator.h"
#include "include/private/base/SkMath.h"
#include "include/private/base/SkTFitsIn.h"
#include <cstddef>
#include <memory>
#include <new>
namespace sktext::gpu {
BagOfBytes::BagOfBytes(char* bytes, size_t size, size_t firstHeapAllocation)
: … { … }
BagOfBytes::BagOfBytes(size_t firstHeapAllocation)
: … { … }
BagOfBytes::~BagOfBytes() { … }
BagOfBytes::Block::Block(char* previous, char* startOfBlock)
: … { … }
void* BagOfBytes::alignedBytes(int size, int alignment) { … }
void BagOfBytes::setupBytesAndCapacity(char* bytes, int size) { … }
void BagOfBytes::needMoreBytes(int requestedSize, int alignment) { … }
SubRunAllocator::SubRunAllocator(char* bytes, int size, int firstHeapAllocation)
: … { … }
SubRunAllocator::SubRunAllocator(int firstHeapAllocation)
: … { … }
void* SubRunAllocator::alignedBytes(int unsafeSize, int unsafeAlignment) { … }
}