Lines Matching defs:allocator
53 GrVkMemoryAllocator* allocator = gpu->memoryAllocator();
67 VkResult result = allocator->allocateBufferMemory(buffer, usage, propFlags, &memory);
71 allocator->getAllocInfo(memory, alloc);
154 GrVkMemoryAllocator* allocator = gpu->memoryAllocator();
156 allocator = alloc.fAllocator;
158 allocator->freeMemory(alloc.fBackendMemory);
167 GrVkMemoryAllocator* allocator = gpu->memoryAllocator();
173 allocator = gpu->memoryAllocatorCacheImage();
182 // If we ever find that our allocator is not aggressive enough in using dedicated image
184 // we let the allocators decide. The allocator can query the GPU for each image to see if the
204 VkResult result = allocator->allocateImageMemory(image, propFlags, &memory);
210 allocator->getAllocInfo(memory, alloc);
236 GrVkMemoryAllocator* allocator = gpu->memoryAllocator();
238 allocator = alloc.fAllocator;
240 allocator->freeMemory(alloc.fBackendMemory);
246 GrVkMemoryAllocator* allocator = gpu->memoryAllocator();
248 allocator = alloc.fAllocator;
251 VkResult result = allocator->mapMemory(alloc.fBackendMemory, &mapPtr);
260 GrVkMemoryAllocator* allocator = gpu->memoryAllocator();
262 allocator = alloc.fAllocator;
264 allocator->unmapMemory(alloc.fBackendMemory);
296 GrVkMemoryAllocator* allocator = gpu->memoryAllocator();
298 allocator = alloc.fAllocator;
300 VkResult result = allocator->flushMemory(alloc.fBackendMemory, offset, size);
311 GrVkMemoryAllocator* allocator = gpu->memoryAllocator();
313 allocator = alloc.fAllocator;
315 VkResult result = allocator->invalidateMemory(alloc.fBackendMemory, offset, size);