Lines Matching refs:fBlocks
43 : fBlocks(8) {
57 if (fBlocks.count()) {
58 GrBuffer* buffer = fBlocks.back().fBuffer;
60 UNMAP_BUFFER(fBlocks.back());
63 while (!fBlocks.empty()) {
88 BufferBlock& block = fBlocks.back();
93 this->flushCpuData(fBlocks.back(), flushSize);
104 SkASSERT(!fBlocks.empty());
105 if (fBlocks.back().fBuffer->isMapped()) {
106 GrBuffer* buf = fBlocks.back().fBuffer;
112 SkASSERT(fBlocks.empty() || !fBlocks.back().fBuffer->isMapped());
115 for (int i = 0; i < fBlocks.count() - 1; ++i) {
116 SkASSERT(!fBlocks[i].fBuffer->isMapped());
118 for (int i = 0; !wasDestroyed && i < fBlocks.count(); ++i) {
119 if (fBlocks[i].fBuffer->wasDestroyed()) {
122 size_t bytes = fBlocks[i].fBuffer->gpuMemorySize() - fBlocks[i].fBytesFree;
131 SkASSERT((fBytesInUse && !fBlocks.empty()) ||
132 (!fBytesInUse && (fBlocks.count() < 2)));
134 SkASSERT((0 == fBytesInUse) == fBlocks.empty());
150 BufferBlock& back = fBlocks.back();
179 BufferBlock& back = fBlocks.back();
200 BufferBlock& back = fBlocks.back();
236 BufferBlock& back = fBlocks.back();
250 SkASSERT(!fBlocks.empty());
251 BufferBlock& block = fBlocks.back();
280 BufferBlock& block = fBlocks.push_back();
284 fBlocks.pop_back();
290 SkASSERT(fBlocks.count() > 1);
291 BufferBlock& prev = fBlocks.fromBack(1);
324 SkASSERT(!fBlocks.empty());
326 BufferBlock& block = fBlocks.back();
330 fBlocks.pop_back();