Lines Matching defs:alloc
26 const GrVkAlloc& alloc,
30 , fAlloc(alloc)
35 this->setRealAlloc(true); // OH ISSUE: set real alloc flag
36 this->setRealAllocSize(sizeInBytes); // OH ISSUE: set real alloc size
75 GrVkAlloc alloc;
139 if (!GrVkMemory::AllocAndBindBufferMemory(gpu, buffer, allocUsage, &alloc, size)) {
141 if (!GrVkMemory::AllocAndBindBufferMemory(gpu, buffer, allocUsage, &alloc)) {
152 DestroyAndFreeBufferMemory(gpu, alloc, buffer);
157 return sk_sp<GrVkBuffer>(new GrVkBuffer(gpu, size, bufferType, accessPattern, buffer, alloc,
170 GrVkAlloc alloc;
215 if (!GrVkMemory::ImportAndBindBufferMemory(gpu, nativeBuffer, buffer, &alloc)) {
220 return sk_sp<GrVkBuffer>(new GrVkBuffer(gpu, bufferSize, bufferType, accessPattern, buffer, alloc, nullptr));
224 void GrVkBuffer::DestroyAndFreeBufferMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc, const VkBuffer& buffer)
227 GrVkMemory::FreeBufferMemory(gpu, alloc);