• Home
  • Raw
  • Download

Lines Matching refs:fBlocks

40         : fBlocks(8), fGpu(gpu), fBufferType(bufferType), fInitialCpuData(initialBuffer) {  in GrBufferAllocPool()
48 if (fBlocks.count()) { in deleteBlocks()
49 GrBuffer* buffer = fBlocks.back().fBuffer.get(); in deleteBlocks()
51 UNMAP_BUFFER(fBlocks.back()); in deleteBlocks()
54 while (!fBlocks.empty()) { in deleteBlocks()
80 BufferBlock& block = fBlocks.back(); in unmap()
85 this->flushCpuData(fBlocks.back(), flushSize); in unmap()
96 SkASSERT(!fBlocks.empty()); in validate()
97 if (!fBlocks.back().fBuffer->isMapped()) { in validate()
101 SkASSERT(fBlocks.empty() || !fBlocks.back().fBuffer->isMapped()); in validate()
104 for (int i = 0; i < fBlocks.count() - 1; ++i) { in validate()
105 SkASSERT(!fBlocks[i].fBuffer->isMapped()); in validate()
107 for (int i = 0; !wasDestroyed && i < fBlocks.count(); ++i) { in validate()
108 if (fBlocks[i].fBuffer->wasDestroyed()) { in validate()
111 size_t bytes = fBlocks[i].fBuffer->gpuMemorySize() - fBlocks[i].fBytesFree; in validate()
120 SkASSERT((fBytesInUse && !fBlocks.empty()) || in validate()
121 (!fBytesInUse && (fBlocks.count() < 2))); in validate()
123 SkASSERT((0 == fBytesInUse) == fBlocks.empty()); in validate()
139 BufferBlock& back = fBlocks.back(); in makeSpace()
173 BufferBlock& back = fBlocks.back(); in makeSpace()
194 BufferBlock& back = fBlocks.back(); in makeSpaceAtLeast()
237 BufferBlock& back = fBlocks.back(); in makeSpaceAtLeast()
251 SkASSERT(!fBlocks.empty()); in putBack()
252 BufferBlock& block = fBlocks.back(); in putBack()
279 BufferBlock& block = fBlocks.push_back(); in createBlock()
283 fBlocks.pop_back(); in createBlock()
289 SkASSERT(fBlocks.count() > 1); in createBlock()
290 BufferBlock& prev = fBlocks.fromBack(1); in createBlock()
323 SkASSERT(!fBlocks.empty()); in destroyBlock()
324 SkASSERT(!fBlocks.back().fBuffer->isMapped()); in destroyBlock()
325 fBlocks.pop_back(); in destroyBlock()