From abe9a9731dcccf06e73e6000355229486f4881cf Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Fri, 11 Jun 2021 08:24:54 -0700 Subject: [PATCH] Vulkan: use FixedCapacityVector in one more spot. --- filament/backend/src/vulkan/VulkanDriver.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filament/backend/src/vulkan/VulkanDriver.h b/filament/backend/src/vulkan/VulkanDriver.h index 3527a305e8..1d26ae8f91 100644 --- a/filament/backend/src/vulkan/VulkanDriver.h +++ b/filament/backend/src/vulkan/VulkanDriver.h @@ -31,9 +31,9 @@ #include #include +#include #include -#include namespace filament { namespace backend { @@ -81,7 +81,7 @@ private: // For now we're not bothering to store handles in pools, just simple on-demand allocation. // We have a little map from integer handles to "blobs" which get replaced with the Hw objects. - using Blob = std::vector; + using Blob = utils::FixedCapacityVector; using HandleMap = std::unordered_map; HandleMap mHandleMap; std::mutex mHandleMapMutex; @@ -90,7 +90,7 @@ private: template Handle alloc_handle() { std::lock_guard lock(mHandleMapMutex); - mHandleMap[mNextId] = Blob(sizeof(Dp)); + mHandleMap[mNextId] = Blob(sizeof(Dp), 0); return Handle(mNextId++); }