Lines Matching refs:fBuffer
33 (float)((block).fBytesFree) / (block).fBuffer->gpuMemorySize()); \
34 (block).fBuffer->unmap(); \
49 GrBuffer* buffer = fBlocks.back().fBuffer.get(); in deleteBlocks()
81 if (block.fBuffer->isMapped()) { in unmap()
84 size_t flushSize = block.fBuffer->gpuMemorySize() - block.fBytesFree; in unmap()
97 if (!fBlocks.back().fBuffer->isMapped()) { in validate()
101 SkASSERT(fBlocks.empty() || !fBlocks.back().fBuffer->isMapped()); in validate()
105 SkASSERT(!fBlocks[i].fBuffer->isMapped()); in validate()
108 if (fBlocks[i].fBuffer->wasDestroyed()) { in validate()
111 size_t bytes = fBlocks[i].fBuffer->gpuMemorySize() - fBlocks[i].fBytesFree; in validate()
140 size_t usedBytes = back.fBuffer->gpuMemorySize() - back.fBytesFree; in makeSpace()
151 *buffer = back.fBuffer; in makeSpace()
174 *buffer = back.fBuffer; in makeSpace()
195 size_t usedBytes = back.fBuffer->gpuMemorySize() - back.fBytesFree; in makeSpaceAtLeast()
214 *buffer = back.fBuffer; in makeSpaceAtLeast()
238 *buffer = back.fBuffer; in makeSpaceAtLeast()
253 size_t bytesUsed = block.fBuffer->gpuMemorySize() - block.fBytesFree; in putBack()
259 if (block.fBuffer->isMapped()) { in putBack()
281 block.fBuffer = this->getBuffer(size); in createBlock()
282 if (!block.fBuffer) { in createBlock()
287 block.fBytesFree = block.fBuffer->gpuMemorySize(); in createBlock()
291 if (prev.fBuffer->isMapped()) { in createBlock()
294 this->flushCpuData(prev, prev.fBuffer->gpuMemorySize() - prev.fBytesFree); in createBlock()
304 bool attemptMap = block.fBuffer->isCPUBacked(); in createBlock()
310 fBufferPtr = block.fBuffer->map(); in createBlock()
324 SkASSERT(!fBlocks.back().fBuffer->isMapped()); in destroyBlock()
348 GrBuffer* buffer = block.fBuffer.get(); in flushCpuData()