Use util::allocator in swapchain object
authorMatteo Franchin <matteo.franchin@arm.com>
Fri, 27 Nov 2020 09:59:18 +0000 (09:59 +0000)
committerMatteo Franchin <matteo.franchin@arm.com>
Thu, 10 Dec 2020 17:46:36 +0000 (17:46 +0000)
commitf0b541a4e373cd796c1ba192947e2c1f0de5286b
tree2a7bfa784512267ac943ded519ec2348008cfb7f
parent5b2b2511f70d1e29cfcc8dc41331643e56983ad3
Use util::allocator in swapchain object

Change util::allocator's create and destroy methods so that they can
allocate multiple objects, in line with the allocate and deallocate
methods of std::allocator.

Also add documentation for util::allocator and its methods.

Finally, use util::allocator in swapchain.cpp, rather than allocating
memory directly via VkAllocationCallbacks.

Change-Id: I0bc25abe3cbc3af9608218411da8d70e04dd9749
Signed-off-by: Matteo Franchin <matteo.franchin@arm.com>
util/custom_allocator.cpp
util/custom_allocator.hpp
wsi/headless/swapchain.cpp
wsi/swapchain_base.cpp
wsi/swapchain_base.hpp