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

Side by Side Diff: gpu/vulkan/vulkan_device_queue.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 | « gpu/vulkan/vulkan_device_queue.h ('k') | gpu/vulkan/vulkan_implementation.h » ('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 #include "gpu/vulkan/vulkan_device_queue.h" 5 #include "gpu/vulkan/vulkan_device_queue.h"
6 6
7 #include <unordered_set> 7 #include <unordered_set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "gpu/vulkan/vulkan_command_pool.h" 10 #include "gpu/vulkan/vulkan_command_pool.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 vkDestroyDevice(vk_device_, nullptr); 159 vkDestroyDevice(vk_device_, nullptr);
160 vk_device_ = VK_NULL_HANDLE; 160 vk_device_ = VK_NULL_HANDLE;
161 } 161 }
162 162
163 vk_queue_ = VK_NULL_HANDLE; 163 vk_queue_ = VK_NULL_HANDLE;
164 vk_queue_index_ = 0; 164 vk_queue_index_ = 0;
165 165
166 vk_physical_device_ = VK_NULL_HANDLE; 166 vk_physical_device_ = VK_NULL_HANDLE;
167 } 167 }
168 168
169 scoped_ptr<VulkanCommandPool> VulkanDeviceQueue::CreateCommandPool() { 169 std::unique_ptr<VulkanCommandPool> VulkanDeviceQueue::CreateCommandPool() {
170 scoped_ptr<VulkanCommandPool> command_pool(new VulkanCommandPool(this)); 170 std::unique_ptr<VulkanCommandPool> command_pool(new VulkanCommandPool(this));
171 if (!command_pool->Initialize()) 171 if (!command_pool->Initialize())
172 return nullptr; 172 return nullptr;
173 173
174 return command_pool; 174 return command_pool;
175 } 175 }
176 176
177 } // namespace gpu 177 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/vulkan/vulkan_device_queue.h ('k') | gpu/vulkan/vulkan_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698