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 #ifndef GPU_VULKAN_VULKAN_IMPLEMENTATION_H_ | 5 #ifndef GPU_VULKAN_VULKAN_IMPLEMENTATION_H_ |
6 #define GPU_VULKAN_VULKAN_IMPLEMENTATION_H_ | 6 #define GPU_VULKAN_VULKAN_IMPLEMENTATION_H_ |
7 | 7 |
8 #include <vulkan/vulkan.h> | 8 #include <vulkan/vulkan.h> |
9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 |
10 namespace gfx { | 12 namespace gfx { |
11 | 13 |
| 14 class VulkanCommandBuffer; |
| 15 |
12 bool InitializeVulkan(); | 16 bool InitializeVulkan(); |
13 | 17 |
14 VkInstance GetVulkanInstance(); | 18 VkInstance GetVulkanInstance(); |
| 19 VkPhysicalDevice GetVulkanPhysicalDevice(); |
15 VkDevice GetVulkanDevice(); | 20 VkDevice GetVulkanDevice(); |
16 VkQueue GetVulkanQueue(); | 21 VkQueue GetVulkanQueue(); |
17 | 22 |
| 23 scoped_ptr<VulkanCommandBuffer> CreatePrimaryCommandBuffer(); |
| 24 scoped_ptr<VulkanCommandBuffer> CreateSecondaryCommandBuffer(); |
| 25 |
18 } // namespace gfx | 26 } // namespace gfx |
19 | 27 |
20 #endif // GPU_VULKAN_VULKAN_WSI_API_IMPLEMENTATION_H_ | 28 #endif // GPU_VULKAN_VULKAN_WSI_API_IMPLEMENTATION_H_ |
OLD | NEW |