| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2016 Google Inc. | 3 * Copyright 2016 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "Window_android.h" | |
| 10 #include "../VulkanWindowContext.h" | 9 #include "../VulkanWindowContext.h" |
| 10 #include "WindowContext_android.h" |
| 11 | 11 |
| 12 #include "vk/GrVkInterface.h" | 12 #include "vk/GrVkInterface.h" |
| 13 #include "vk/GrVkUtil.h" | 13 #include "vk/GrVkUtil.h" |
| 14 | 14 |
| 15 namespace sk_app { | 15 namespace sk_app { |
| 16 | 16 |
| 17 VkSurfaceKHR VulkanWindowContext::createVkSurface(VkInstance instance, void* pla
tformData) { | 17 VkSurfaceKHR VulkanWindowContext::createVkSurface(VkInstance instance, void* pla
tformData) { |
| 18 static PFN_vkCreateAndroidSurfaceKHR createAndroidSurfaceKHR = nullptr; | 18 static PFN_vkCreateAndroidSurfaceKHR createAndroidSurfaceKHR = nullptr; |
| 19 if (!createAndroidSurfaceKHR) { | 19 if (!createAndroidSurfaceKHR) { |
| 20 createAndroidSurfaceKHR = (PFN_vkCreateAndroidSurfaceKHR)vkGetInstancePr
ocAddr(instance, | 20 createAndroidSurfaceKHR = (PFN_vkCreateAndroidSurfaceKHR)vkGetInstancePr
ocAddr(instance, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 nullptr, &surface); | 39 nullptr, &surface); |
| 40 return (VK_SUCCESS == res) ? surface : VK_NULL_HANDLE; | 40 return (VK_SUCCESS == res) ? surface : VK_NULL_HANDLE; |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool VulkanWindowContext::canPresent(VkInstance instance, VkPhysicalDevice physD
ev, | 43 bool VulkanWindowContext::canPresent(VkInstance instance, VkPhysicalDevice physD
ev, |
| 44 uint32_t queueFamilyIndex, void*) { | 44 uint32_t queueFamilyIndex, void*) { |
| 45 return true; | 45 return true; |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace sk_app | 48 } // namespace sk_app |
| OLD | NEW |