Lines Matching defs:bytes
16 GrBagOfBytes::GrBagOfBytes(char* bytes, size_t size, size_t firstHeapAllocation)
22 void* ptr = bytes;
23 if (bytes && std::align(kMaxAlignment, sizeof(Block), ptr, space)) {
24 this->setupBytesAndCapacity(bytes, size);
53 void GrBagOfBytes::setupBytesAndCapacity(char* bytes, int size) {
56 intptr_t endByte = reinterpret_cast<intptr_t>(bytes + size - sizeof(Block)) & -kMaxAlignment;
58 fCapacity = fEndByte - bytes;
65 char* const bytes = new char[size];
68 this->setupBytesAndCapacity(bytes, size);
70 // Make a block to delete these bytes, and points to the previous block.
71 new (fEndByte) Block{previousBlock, bytes};
79 GrSubRunAllocator::GrSubRunAllocator(char* bytes, int size, int firstHeapAllocation)
80 : fAlloc{bytes, SkTo<size_t>(size), SkTo<size_t>(firstHeapAllocation)} {}