Lines Matching refs:block
108 BufferBlock& block = fBlocks.back();
109 if (block.fBuffer->isLocked()) {
110 block.fBuffer->unlock();
112 size_t flushSize = block.fBuffer->sizeInBytes() - block.fBytesFree;
233 BufferBlock& block = fBlocks.back();
234 size_t bytesUsed = block.fBuffer->sizeInBytes() - block.fBytesFree;
240 if (block.fBuffer->isLocked()) {
241 block.fBuffer->unlock();
245 block.fBytesFree += bytes;
266 BufferBlock& block = fBlocks.push_back();
274 block.fBuffer = fPreallocBuffers[nextBuffer];
275 block.fBuffer->ref();
278 block.fBuffer = this->createBuffer(size);
279 if (NULL == block.fBuffer) {
285 block.fBytesFree = size;
305 bool attemptLock = block.fBuffer->isCPUBacked();
315 fBufferPtr = block.fBuffer->lock();
330 BufferBlock& block = fBlocks.back();
336 if (block.fBuffer == fPreallocBuffers[prevPreallocBuffer]) {
340 GrAssert(!block.fBuffer->isLocked());
341 block.fBuffer->unref();