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

Unified Diff: gpu/vulkan/vulkan_swap_chain.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_surface.cc ('k') | gpu/vulkan/vulkan_swap_chain.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/vulkan_swap_chain.h
diff --git a/gpu/vulkan/vulkan_swap_chain.h b/gpu/vulkan/vulkan_swap_chain.h
index 7c376e069d0e842ba97fea7a86c34e6cc905cf7d..345e4bebf860911452580c173bcc850d67bba46d 100644
--- a/gpu/vulkan/vulkan_swap_chain.h
+++ b/gpu/vulkan/vulkan_swap_chain.h
@@ -17,6 +17,7 @@ namespace gpu {
class VulkanCommandBuffer;
class VulkanCommandPool;
+class VulkanDeviceQueue;
class VulkanImageView;
class VulkanSwapChain {
@@ -24,7 +25,8 @@ class VulkanSwapChain {
VulkanSwapChain();
~VulkanSwapChain();
- bool Initialize(VkSurfaceKHR surface,
+ bool Initialize(VulkanDeviceQueue* device_queue,
+ VkSurfaceKHR surface,
const VkSurfaceCapabilitiesKHR& surface_caps,
const VkSurfaceFormatKHR& surface_format);
void Destroy();
@@ -59,6 +61,7 @@ class VulkanSwapChain {
const VkSurfaceFormatKHR& surface_format);
void DestroySwapImages();
+ VulkanDeviceQueue* device_queue_;
VkSwapchainKHR swap_chain_ = VK_NULL_HANDLE;
scoped_ptr<VulkanCommandPool> command_pool_;
« no previous file with comments | « gpu/vulkan/vulkan_surface.cc ('k') | gpu/vulkan/vulkan_swap_chain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698