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

Unified Diff: gpu/vulkan/vulkan_image_view.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_device_queue.cc ('k') | gpu/vulkan/vulkan_image_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/vulkan_image_view.h
diff --git a/gpu/vulkan/vulkan_image_view.h b/gpu/vulkan/vulkan_image_view.h
index 476d78527f4f8df2385af663c1a183bd0e84e41d..4849632917f049c7c55da92edf9ca7dc4386dea8 100644
--- a/gpu/vulkan/vulkan_image_view.h
+++ b/gpu/vulkan/vulkan_image_view.h
@@ -11,6 +11,8 @@
namespace gpu {
+class VulkanDeviceQueue;
+
class VulkanImageView {
public:
enum ImageType {
@@ -23,7 +25,7 @@ class VulkanImageView {
IMAGE_TYPE_INVALID = -1,
};
- VulkanImageView();
+ explicit VulkanImageView(VulkanDeviceQueue* device_queue);
~VulkanImageView();
bool Initialize(VkImage image,
@@ -47,6 +49,7 @@ class VulkanImageView {
uint32_t layers() const { return layers_; }
private:
+ VulkanDeviceQueue* device_queue_ = nullptr;
ImageType image_type_ = IMAGE_TYPE_INVALID;
VkImageView handle_ = VK_NULL_HANDLE;
VkFormat format_ = VK_FORMAT_UNDEFINED;
« no previous file with comments | « gpu/vulkan/vulkan_device_queue.cc ('k') | gpu/vulkan/vulkan_image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698