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

Unified Diff: gpu/vulkan/vulkan_command_pool.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/vulkan_command_buffer.cc ('k') | gpu/vulkan/vulkan_command_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/vulkan_command_pool.h
diff --git a/gpu/vulkan/vulkan_command_pool.h b/gpu/vulkan/vulkan_command_pool.h
index 091fd4efb3b04e885e849199655e0f54e84a5eb7..5b763ef5801b222d63f06bfaf40d24f0ee7c0287 100644
--- a/gpu/vulkan/vulkan_command_pool.h
+++ b/gpu/vulkan/vulkan_command_pool.h
@@ -13,10 +13,11 @@
namespace gpu {
class VulkanCommandBuffer;
+class VulkanDeviceQueue;
class VulkanCommandPool {
public:
- VulkanCommandPool(VkDevice device, uint32_t queue_index);
+ explicit VulkanCommandPool(VulkanDeviceQueue* device_queue);
~VulkanCommandPool();
bool Initialize();
@@ -33,8 +34,7 @@ class VulkanCommandPool {
void IncrementCommandBufferCount();
void DecrementCommandBufferCount();
- VkDevice device_ = VK_NULL_HANDLE;
- uint32_t queue_index_ = 0;
+ VulkanDeviceQueue* device_queue_;
VkCommandPool handle_ = VK_NULL_HANDLE;
uint32_t command_buffer_count_ = 0;
« no previous file with comments | « gpu/vulkan/vulkan_command_buffer.cc ('k') | gpu/vulkan/vulkan_command_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698