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

Unified Diff: gpu/vulkan/vulkan_command_buffer.h

Issue 1829163003: Added initial implementation of the Vulkan Context Provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vk_surface_patch
Patch Set: Block off vulkan_cc with enable_vulkan (not relevant in future patch) Created 4 years, 9 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
« no previous file with comments | « gpu/vulkan/tests/vulkan_test.cc ('k') | gpu/vulkan/vulkan_command_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/vulkan_command_buffer.h
diff --git a/gpu/vulkan/vulkan_command_buffer.h b/gpu/vulkan/vulkan_command_buffer.h
index 31f37a64d1f2731ec8dfbdaa4d218b1f2925d2b0..787488c1d7b9fc8f136b3f9c2a2310350f9058d8 100644
--- a/gpu/vulkan/vulkan_command_buffer.h
+++ b/gpu/vulkan/vulkan_command_buffer.h
@@ -15,18 +15,20 @@
namespace gpu {
class VulkanCommandPool;
+class VulkanDeviceQueue;
class VULKAN_EXPORT VulkanCommandBuffer {
public:
- VulkanCommandBuffer(VulkanCommandPool* command_pool, bool primary);
+ VulkanCommandBuffer(VulkanDeviceQueue* device_queue,
+ VulkanCommandPool* command_pool,
+ bool primary);
~VulkanCommandBuffer();
bool Initialize();
void Destroy();
// Submit primary command buffer to the queue.
- bool Submit(VkQueue queue,
- uint32_t num_wait_semaphores,
+ bool Submit(uint32_t num_wait_semaphores,
VkSemaphore* wait_semaphores,
uint32_t num_signal_semaphores,
VkSemaphore* signal_semaphores);
@@ -70,6 +72,7 @@ class VULKAN_EXPORT VulkanCommandBuffer {
const bool primary_;
bool recording_ = false;
RecordType record_type_ = RECORD_TYPE_EMPTY;
+ VulkanDeviceQueue* device_queue_;
VulkanCommandPool* command_pool_;
VkCommandBuffer command_buffer_ = VK_NULL_HANDLE;
VkFence submission_fence_ = VK_NULL_HANDLE;
« no previous file with comments | « gpu/vulkan/tests/vulkan_test.cc ('k') | gpu/vulkan/vulkan_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698