| Index: src/gpu/vk/GrVkMemory.h
|
| diff --git a/src/gpu/vk/GrVkMemory.h b/src/gpu/vk/GrVkMemory.h
|
| index 2e61451514251ba05b2be74a521edaf12d293030..279dd58dd5b4a5489115fec2b47de04de9051eeb 100644
|
| --- a/src/gpu/vk/GrVkMemory.h
|
| +++ b/src/gpu/vk/GrVkMemory.h
|
| @@ -9,6 +9,7 @@
|
| #define GrVkMemory_DEFINED
|
|
|
| #include "vk/GrVkDefines.h"
|
| +#include "vk/GrVkTypes.h"
|
|
|
| class GrVkGpu;
|
|
|
| @@ -20,12 +21,14 @@ namespace GrVkMemory {
|
| bool AllocAndBindBufferMemory(const GrVkGpu* gpu,
|
| VkBuffer buffer,
|
| const VkMemoryPropertyFlags flags,
|
| - VkDeviceMemory* memory);
|
| + GrVkAlloc* alloc);
|
| + void FreeBufferMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc);
|
|
|
| bool AllocAndBindImageMemory(const GrVkGpu* gpu,
|
| VkImage image,
|
| const VkMemoryPropertyFlags flags,
|
| - VkDeviceMemory* memory);
|
| + GrVkAlloc* alloc);
|
| + void FreeImageMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc);
|
|
|
| VkPipelineStageFlags LayoutToPipelineStageFlags(const VkImageLayout layout);
|
|
|
|
|