Index: src/gpu/vk/GrVkBackendContext.cpp |
diff --git a/src/gpu/vk/GrVkBackendContext.cpp b/src/gpu/vk/GrVkBackendContext.cpp |
index 8256294a5303b1029d7de606efce6ddb4e740c42..e859b19ae5560c10c7d9d74d5903b88176ec3d9f 100644 |
--- a/src/gpu/vk/GrVkBackendContext.cpp |
+++ b/src/gpu/vk/GrVkBackendContext.cpp |
@@ -40,9 +40,7 @@ const uint32_t kGrVkMinimumVersion = VK_MAKE_VERSION(1, 0, 8); |
// Create the base Vulkan objects needed by the GrVkGpu object |
const GrVkBackendContext* GrVkBackendContext::Create(uint32_t* presentQueueIndexPtr, |
- bool(*canPresent)(VkInstance, VkPhysicalDevice, uint32_t queueIndex, |
- void* platformData), |
- void* platformData) { |
+ CanPresentFn canPresent) { |
VkPhysicalDevice physDev; |
VkDevice device; |
VkInstance inst; |
@@ -161,7 +159,7 @@ const GrVkBackendContext* GrVkBackendContext::Create(uint32_t* presentQueueIndex |
uint32_t presentQueueIndex = graphicsQueueIndex; |
if (presentQueueIndexPtr && canPresent) { |
for (uint32_t i = 0; i < queueCount; i++) { |
- if (canPresent(inst, physDev, i, platformData)) { |
+ if (canPresent(inst, physDev, i)) { |
presentQueueIndex = i; |
break; |
} |