Lines Matching refs:usedBytes
140 size_t usedBytes = back.fBuffer->gpuMemorySize() - back.fBytesFree; in makeSpace() local
141 size_t pad = GrSizeAlignUpPad(usedBytes, alignment); in makeSpace()
148 memset((void*)(reinterpret_cast<intptr_t>(fBufferPtr) + usedBytes), 0, pad); in makeSpace()
149 usedBytes += pad; in makeSpace()
150 *offset = usedBytes; in makeSpace()
155 return (void*)(reinterpret_cast<intptr_t>(fBufferPtr) + usedBytes); in makeSpace()
195 size_t usedBytes = back.fBuffer->gpuMemorySize() - back.fBytesFree; in makeSpaceAtLeast() local
196 size_t pad = GrSizeAlignUpPad(usedBytes, alignment); in makeSpaceAtLeast()
199 memset((void*)(reinterpret_cast<intptr_t>(fBufferPtr) + usedBytes), 0, pad); in makeSpaceAtLeast()
200 usedBytes += pad; in makeSpaceAtLeast()
213 *offset = usedBytes; in makeSpaceAtLeast()
219 return (void*)(reinterpret_cast<intptr_t>(fBufferPtr) + usedBytes); in makeSpaceAtLeast()