Home | History | Annotate | Download | only in hwui

Lines Matching refs:block

101     BufferBlock* block = mFreeBlocks;
102 while (block) {
103 BufferBlock* next = block->next;
104 delete block;
105 block = next;
142 // Add a new free block to the list
144 BufferBlock* block = new BufferBlock(patch->offset, patch->getSize());
145 block->next = mFreeBlocks;
146 mFreeBlocks = block;
182 // Find a block where we can fit the mesh
184 BufferBlock* block = mFreeBlocks;
185 while (block) {
187 if (block->size >= size) {
190 previous = block;
191 block = block->next;
196 if (!block) {
200 block = mFreeBlocks;
204 newMesh->offset = (GLintptr) (block->offset);
208 // Remove the block since we've used it entirely
209 if (block->size == size) {
211 previous->next = block->next;
213 mFreeBlocks = block->next;
216 // Resize the block now that it's occupied
217 block->offset += size;
218 block->size -= size;
262 BufferBlock* block = mFreeBlocks;
263 while (block) {
264 dump.appendFormat("->(%d, %d)", block->offset, block->size);
265 block = block->next;