Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3a28a65

Browse files
committed
Explicit constructor calls for VulkanHandle
1 parent a583ab4 commit 3a28a65

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

shell/platform/embedder/embedder_surface_vulkan.cc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ EmbedderSurfaceVulkan::EmbedderSurfaceVulkan(
2121
VulkanDispatchTable vulkan_dispatch_table,
2222
std::shared_ptr<EmbedderExternalViewEmbedder> external_view_embedder)
2323
: vk_(vulkan_dispatch_table.get_instance_proc_address),
24-
device_(vk_, physical_device, device, queue_family_index, queue),
24+
device_(vk_,
25+
vulkan::VulkanHandle<VkPhysicalDevice>{physical_device},
26+
vulkan::VulkanHandle<VkDevice>{device},
27+
queue_family_index,
28+
vulkan::VulkanHandle<VkQueue>{queue}),
2529
vulkan_dispatch_table_(vulkan_dispatch_table),
2630
external_view_embedder_(external_view_embedder) {
2731
// Make sure all required members of the dispatch table are checked.
@@ -31,8 +35,8 @@ EmbedderSurfaceVulkan::EmbedderSurfaceVulkan(
3135
return;
3236
}
3337

34-
vk_.SetupInstanceProcAddresses(instance);
35-
vk_.SetupDeviceProcAddresses(device);
38+
vk_.SetupInstanceProcAddresses(vulkan::VulkanHandle<VkInstance>{instance});
39+
vk_.SetupDeviceProcAddresses(vulkan::VulkanHandle<VkDevice>{device});
3640
if (!vk_.IsValid()) {
3741
FML_LOG(ERROR) << "VulkanProcTable invalid.";
3842
return;

0 commit comments

Comments
 (0)