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

Side by Side Diff: gpu/vulkan/vulkan_render_pass.h

Issue 1919443002: Added copy/move constructors of complex RenderPass types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use default Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | gpu/vulkan/vulkan_render_pass.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_VULKAN_VULKAN_RENDER_PASS_H_ 5 #ifndef GPU_VULKAN_VULKAN_RENDER_PASS_H_
6 #define GPU_VULKAN_VULKAN_RENDER_PASS_H_ 6 #define GPU_VULKAN_VULKAN_RENDER_PASS_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include <vulkan/vulkan.h> 9 #include <vulkan/vulkan.h>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool ValidateData(const VulkanSwapChain* swap_chain) const; 56 bool ValidateData(const VulkanSwapChain* swap_chain) const;
57 }; 57 };
58 58
59 struct SubpassAttachment { 59 struct SubpassAttachment {
60 uint32_t attachment_index; 60 uint32_t attachment_index;
61 ImageLayoutType subpass_layout; 61 ImageLayoutType subpass_layout;
62 }; 62 };
63 63
64 struct SubpassData { 64 struct SubpassData {
65 SubpassData(); 65 SubpassData();
66 SubpassData(const SubpassData& data);
67 SubpassData(SubpassData&& data);
66 ~SubpassData(); 68 ~SubpassData();
67 69
68 std::vector<SubpassAttachment> subpass_attachments; 70 std::vector<SubpassAttachment> subpass_attachments;
69 71
70 bool ValidateData(uint32_t num_attachments) const; 72 bool ValidateData(uint32_t num_attachments) const;
71 }; 73 };
72 74
73 struct RenderPassData { 75 struct RenderPassData {
74 RenderPassData(); 76 RenderPassData();
77 RenderPassData(const RenderPassData& data);
78 RenderPassData(RenderPassData&& data);
75 ~RenderPassData(); 79 ~RenderPassData();
76 80
77 std::vector<AttachmentData> attachments; 81 std::vector<AttachmentData> attachments;
78 std::vector<SubpassData> subpass_datas; 82 std::vector<SubpassData> subpass_datas;
79 83
80 bool ValidateData(const VulkanSwapChain* swap_chain) const; 84 bool ValidateData(const VulkanSwapChain* swap_chain) const;
81 }; 85 };
82 86
83 explicit VulkanRenderPass(VulkanDeviceQueue* device_queue); 87 explicit VulkanRenderPass(VulkanDeviceQueue* device_queue);
84 ~VulkanRenderPass(); 88 ~VulkanRenderPass();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 124
121 // There is 1 frame buffer for every swap chain image. 125 // There is 1 frame buffer for every swap chain image.
122 std::vector<VkFramebuffer> frame_buffers_; 126 std::vector<VkFramebuffer> frame_buffers_;
123 127
124 DISALLOW_COPY_AND_ASSIGN(VulkanRenderPass); 128 DISALLOW_COPY_AND_ASSIGN(VulkanRenderPass);
125 }; 129 };
126 130
127 } // namespace gpu 131 } // namespace gpu
128 132
129 #endif // GPU_VULKAN_VULKAN_RENDER_PASS_H_ 133 #endif // GPU_VULKAN_VULKAN_RENDER_PASS_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/vulkan/vulkan_render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698