Home
last modified time | relevance | path

Searched refs:ResourceMemoryAllocation (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DBuddyMemoryAllocatorTests.cpp47 ResourceMemoryAllocation Allocate(uint64_t allocationSize, uint64_t alignment = 1) { in Allocate()
48 ResultOrError<ResourceMemoryAllocation> result = in Allocate()
50 return (result.IsSuccess()) ? result.AcquireSuccess() : ResourceMemoryAllocation{}; in Allocate()
53 void Deallocate(ResourceMemoryAllocation& allocation) { in Deallocate()
79 ResourceMemoryAllocation invalidAllocation = allocator.Allocate(heapSize * 2); in TEST()
83 ResourceMemoryAllocation allocation1 = allocator.Allocate(128); in TEST()
112 ResourceMemoryAllocation invalidAllocation = allocator.Allocate(heapSize * 2); in TEST()
120 ResourceMemoryAllocation allocation1 = allocator.Allocate(heapSize); in TEST()
127 ResourceMemoryAllocation allocation2 = allocator.Allocate(heapSize); in TEST()
160 ResourceMemoryAllocation allocation1 = allocator.Allocate(heapSize / 2); in TEST()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DResourceMemoryAllocation.cpp20 ResourceMemoryAllocation::ResourceMemoryAllocation() in ResourceMemoryAllocation() function in dawn_native::ResourceMemoryAllocation
24 ResourceMemoryAllocation::ResourceMemoryAllocation(const AllocationInfo& info, in ResourceMemoryAllocation() function in dawn_native::ResourceMemoryAllocation
31 ResourceHeapBase* ResourceMemoryAllocation::GetResourceHeap() const { in GetResourceHeap()
36 uint64_t ResourceMemoryAllocation::GetOffset() const { in GetOffset()
41 AllocationInfo ResourceMemoryAllocation::GetInfo() const { in GetInfo()
45 uint8_t* ResourceMemoryAllocation::GetMappedPointer() const { in GetMappedPointer()
49 void ResourceMemoryAllocation::Invalidate() { in Invalidate()
DResourceMemoryAllocation.h53 class ResourceMemoryAllocation {
55 ResourceMemoryAllocation();
56 ResourceMemoryAllocation(const AllocationInfo& info,
60 virtual ~ResourceMemoryAllocation() = default;
62 ResourceMemoryAllocation(const ResourceMemoryAllocation&) = default;
63 ResourceMemoryAllocation& operator=(const ResourceMemoryAllocation&) = default;
DBuddyMemoryAllocator.cpp40 ResultOrError<ResourceMemoryAllocation> BuddyMemoryAllocator::Allocate(uint64_t allocationSize, in Allocate()
42 ResourceMemoryAllocation invalidAllocation = ResourceMemoryAllocation{}; in Allocate()
84 return ResourceMemoryAllocation{ in Allocate()
88 void BuddyMemoryAllocator::Deallocate(const ResourceMemoryAllocation& allocation) { in Deallocate()
DBuddyMemoryAllocator.h47 ResultOrError<ResourceMemoryAllocation> Allocate(uint64_t allocationSize,
49 void Deallocate(const ResourceMemoryAllocation& allocation);
DCMakeLists.txt150 "ResourceMemoryAllocation.cpp"
151 "ResourceMemoryAllocation.h"
DBUILD.gn305 "ResourceMemoryAllocation.cpp",
306 "ResourceMemoryAllocation.h",
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DResourceMemoryAllocatorVk.cpp65 ResultOrError<ResourceMemoryAllocation> AllocateMemory(uint64_t size, uint64_t alignment) { in AllocateMemory()
69 void DeallocateMemory(const ResourceMemoryAllocation& allocation) { in DeallocateMemory()
125 ResultOrError<ResourceMemoryAllocation> ResourceMemoryAllocator::Allocate( in Allocate()
153 ResourceMemoryAllocation subAllocation; in Allocate()
179 return ResourceMemoryAllocation(info, /*offset*/ 0, resourceHeap.release(), in Allocate()
183 void ResourceMemoryAllocator::Deallocate(ResourceMemoryAllocation* allocation) { in Deallocate()
219 for (const ResourceMemoryAllocation& allocation : in Tick()
DResourceMemoryAllocatorVk.h45 ResultOrError<ResourceMemoryAllocation> Allocate(const VkMemoryRequirements& requirements,
47 void Deallocate(ResourceMemoryAllocation* allocation);
61 SerialQueue<ExecutionSerial, ResourceMemoryAllocation> mSubAllocationsToDelete;
DStagingBufferVk.h38 ResourceMemoryAllocation mAllocation;
DBufferVk.h75 ResourceMemoryAllocation mMemoryAllocation;
DTextureVk.h147 ResourceMemoryAllocation mMemoryAllocation;
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DResourceHeapAllocationD3D12.cpp27 : ResourceMemoryAllocation(info, offset, heap), mResource(std::move(resource)) { in ResourceHeapAllocation()
32 ResourceMemoryAllocation::Invalidate(); in Invalidate()
DResourceHeapAllocationD3D12.h26 class ResourceHeapAllocation : public ResourceMemoryAllocation {
DResourceAllocatorManagerD3D12.cpp308 ResourceMemoryAllocation allocation; in CreatePlacedResource()