Lines Matching refs:SkBufferBlock
21 struct SkBufferBlock { struct
22 SkBufferBlock* fNext; // updated by the writer argument
26 SkBufferBlock(size_t capacity) : fNext(nullptr), fUsed(0), fCapacity(capacity) {} in SkBufferBlock() function
33 static SkBufferBlock* Alloc(size_t length) { in Alloc() argument
35 void* buffer = sk_malloc_throw(sizeof(SkBufferBlock) + capacity); in Alloc()
36 return new (buffer) SkBufferBlock(capacity); in Alloc()
62 const size_t minSize = kMinAllocSize - sizeof(SkBufferBlock); in LengthToCapacity() argument
69 SkBufferBlock fBlock;
95 SkBufferBlock* block = fBlock.fNext; in unref()
98 SkBufferBlock* next = block->fNext; in unref()
105 void validate(size_t minUsed, const SkBufferBlock* tail = nullptr) const { in validate()
109 const SkBufferBlock* block = &fBlock; in validate()
110 const SkBufferBlock* lastBlock = block; in validate()
129 SkROBuffer::SkROBuffer(const SkBufferHead* head, size_t available, const SkBufferBlock* tail) in SkROBuffer()
231 SkBufferBlock* block = SkBufferBlock::Alloc(length + reserve); in append()