Home | History | Annotate | Download | only in gpu

Lines Matching refs:block

74      * Removes and destroys the last block added to the recorder. It may not be called when the
115 /** Allocates a new block and appends it to prev if not nullptr. The length param is in units
118 MemBlock* block = reinterpret_cast<MemBlock*>(
120 block->fLength = length;
121 block->fBack = 0;
122 block->fNext = nullptr;
123 block->fPrev = prev;
126 prev->fNext = block;
128 return block;
131 // Frees from this block forward. Also adjusts prev block's next ptr.
132 static void Free(MemBlock* block) {
133 if (block && block->fPrev) {
134 SkASSERT(block->fPrev->fNext == block);
135 block->fPrev->fNext = nullptr;
137 while (block) {
138 MemBlock* next = block->fNext;
139 sk_free(block);
140 block = next;
148 int fLength; // Length in units of TAlign of the block.
149 int fBack; // Offset, in TAligns, to unused portion of the memory block.
187 // We popped the last entry in a block that isn't the head block. Move back a block but
209 // Check if there is room in the current block and if not walk to next (allocating if
350 for (MemBlock* block = fHeadBlock; block; block = block->fNext) {
351 block->fBack = 0;