Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Unified Diff: src/gpu/vk/GrVkMemory.h

Issue 2018933004: Add offset to memory allocations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Take care of some additional FreeMemorys Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/vk/GrVkMemory.h
diff --git a/src/gpu/vk/GrVkMemory.h b/src/gpu/vk/GrVkMemory.h
index 2e61451514251ba05b2be74a521edaf12d293030..55b4392ab8ff80fced8766307c05326a0f3312b6 100644
--- a/src/gpu/vk/GrVkMemory.h
+++ b/src/gpu/vk/GrVkMemory.h
@@ -20,12 +20,16 @@ namespace GrVkMemory {
bool AllocAndBindBufferMemory(const GrVkGpu* gpu,
VkBuffer buffer,
const VkMemoryPropertyFlags flags,
- VkDeviceMemory* memory);
+ VkDeviceMemory* memory,
+ VkDeviceSize* offset);
+ void FreeBufferMemory(const GrVkGpu* gpu, VkDeviceMemory memory, VkDeviceSize offset);
bool AllocAndBindImageMemory(const GrVkGpu* gpu,
VkImage image,
const VkMemoryPropertyFlags flags,
- VkDeviceMemory* memory);
+ VkDeviceMemory* memory,
+ VkDeviceSize* offset);
+ void FreeImageMemory(const GrVkGpu* gpu, VkDeviceMemory memory, VkDeviceSize offset);
VkPipelineStageFlags LayoutToPipelineStageFlags(const VkImageLayout layout);

Powered by Google App Engine
This is Rietveld 408576698