OLD | NEW |
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 Loading... |
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 |
OLD | NEW |