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_render_pass.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_implementation.cc ('k') | gpu/vulkan/vulkan_render_pass.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/vulkan_render_pass.h
diff --git a/gpu/vulkan/vulkan_render_pass.h b/gpu/vulkan/vulkan_render_pass.h
index 6cb8009ba812064db4e5b183f8c3d01e8a5192db..7f47deef940c97492b0ebb4f7d3b82afa180ee6b 100644
--- a/gpu/vulkan/vulkan_render_pass.h
+++ b/gpu/vulkan/vulkan_render_pass.h
@@ -14,6 +14,7 @@
namespace gpu {
class CommandBufferRecorderBase;
+class VulkanDeviceQueue;
class VulkanImageView;
class VulkanSwapChain;
@@ -79,7 +80,7 @@ class VULKAN_EXPORT VulkanRenderPass {
bool ValidateData(const VulkanSwapChain* swap_chain) const;
};
- VulkanRenderPass();
+ explicit VulkanRenderPass(VulkanDeviceQueue* device_queue);
~VulkanRenderPass();
bool Initialize(const VulkanSwapChain* swap_chain,
@@ -102,6 +103,7 @@ class VULKAN_EXPORT VulkanRenderPass {
void SetClearValue(uint32_t attachment_index, VkClearValue clear_value);
private:
+ VulkanDeviceQueue* device_queue_ = nullptr;
const VulkanSwapChain* swap_chain_ = nullptr;
uint32_t num_sub_passes_ = 0;
uint32_t current_sub_pass_ = 0;
« no previous file with comments | « gpu/vulkan/vulkan_implementation.cc ('k') | gpu/vulkan/vulkan_render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698