Lines Matching refs:fBufferPtr
107 SkASSERT(!fBufferPtr); in deleteBlocks()
126 if (fBufferPtr) { in unmap()
137 fBufferPtr = nullptr; in unmap()
145 if (fBufferPtr) { in validate()
149 SkASSERT(fCpuStagingBuffer && fCpuStagingBuffer->data() == fBufferPtr); in validate()
200 if (fBufferPtr) { in makeSpace()
210 memset((void*)(reinterpret_cast<intptr_t>(fBufferPtr) + usedBytes), 0, pad); in makeSpace()
217 return (void*)(reinterpret_cast<intptr_t>(fBufferPtr) + usedBytes); in makeSpace()
232 SkASSERT(fBufferPtr); in makeSpace()
240 return fBufferPtr; in makeSpace()
267 SkASSERT(fBufferPtr); in makeSpaceAtLeast()
270 memset(static_cast<char*>(fBufferPtr) + usedBytes, 0, pad); in makeSpaceAtLeast()
283 return static_cast<char*>(fBufferPtr) + usedBytes; in makeSpaceAtLeast()
329 if (fBufferPtr) { in createBlock()
340 fBufferPtr = nullptr; in createBlock()
343 SkASSERT(!fBufferPtr); in createBlock()
349 fBufferPtr = static_cast<GrCpuBuffer*>(block.fBuffer.get())->data(); in createBlock()
350 SkASSERT(fBufferPtr); in createBlock()
354 fBufferPtr = static_cast<GrGpuBuffer*>(block.fBuffer.get())->map(); in createBlock()
357 if (!fBufferPtr) { in createBlock()
359 fBufferPtr = fCpuStagingBuffer->data(); in createBlock()
372 fBufferPtr = nullptr; in destroyBlock()
394 SkASSERT(fCpuStagingBuffer && fCpuStagingBuffer->data() == fBufferPtr); in flushCpuData()
402 memcpy(data, fBufferPtr, flushSize); in flushCpuData()
407 buffer->updateData(fBufferPtr, flushSize); in flushCpuData()