Lines Matching refs:fBuffer
58 GrGeometryBuffer* buffer = fBlocks.back().fBuffer;
81 GrGeometryBuffer* buffer = fBlocks.back().fBuffer;
109 if (block.fBuffer->isLocked()) {
110 block.fBuffer->unlock();
112 size_t flushSize = block.fBuffer->sizeInBytes() - block.fBytesFree;
113 flushCpuData(fBlocks.back().fBuffer, flushSize);
124 if (fBlocks.back().fBuffer->isLocked()) {
125 GrGeometryBuffer* buf = fBlocks.back().fBuffer;
131 SkASSERT(fBlocks.empty() || !fBlocks.back().fBuffer->isLocked());
135 SkASSERT(!fBlocks[i].fBuffer->isLocked());
138 size_t bytes = fBlocks[i].fBuffer->sizeInBytes() - fBlocks[i].fBytesFree;
164 size_t usedBytes = back.fBuffer->sizeInBytes() - back.fBytesFree;
170 *buffer = back.fBuffer;
193 *buffer = back.fBuffer;
204 size_t usedBytes = back.fBuffer->sizeInBytes() - back.fBytesFree;
234 size_t bytesUsed = block.fBuffer->sizeInBytes() - block.fBytesFree;
240 if (block.fBuffer->isLocked()) {
241 block.fBuffer->unlock();
274 block.fBuffer = fPreallocBuffers[nextBuffer];
275 block.fBuffer->ref();
278 block.fBuffer = this->createBuffer(size);
279 if (NULL == block.fBuffer) {
289 if (prev.fBuffer->isLocked()) {
290 prev.fBuffer->unlock();
292 flushCpuData(prev.fBuffer,
293 prev.fBuffer->sizeInBytes() - prev.fBytesFree);
305 bool attemptLock = block.fBuffer->isCPUBacked();
315 fBufferPtr = block.fBuffer->lock();
336 if (block.fBuffer == fPreallocBuffers[prevPreallocBuffer]) {
340 SkASSERT(!block.fBuffer->isLocked());
341 block.fBuffer->unref();