Index: src/gpu/vk/GrVkBuffer.h |
diff --git a/src/gpu/vk/GrVkBuffer.h b/src/gpu/vk/GrVkBuffer.h |
index 289ef30d7fa703c96442f770a89f32c32845c8c8..141b2a378f3e6fed4a10ca652257ac0ccdcfc457 100644 |
--- a/src/gpu/vk/GrVkBuffer.h |
+++ b/src/gpu/vk/GrVkBuffer.h |
@@ -73,7 +73,10 @@ protected: |
void* vkMap(const GrVkGpu* gpu); |
void vkUnmap(const GrVkGpu* gpu); |
- bool vkUpdateData(const GrVkGpu* gpu, const void* src, size_t srcSizeInBytes); |
+ // If the caller passes in a non null createdNewBuffer, this function will set the bool to true |
+ // if it creates a new VkBuffer to upload the data to. |
+ bool vkUpdateData(const GrVkGpu* gpu, const void* src, size_t srcSizeInBytes, |
+ bool* createdNewBuffer = nullptr); |
void vkAbandon(); |
void vkRelease(const GrVkGpu* gpu); |