Migrate from VkExportDeviceMemoryMAGMA (deprecated). (flutter/engine#4288)

This commit is contained in:
mikejurka 2017-10-27 13:34:39 -07:00 committed by GitHub
parent f9ccc371b9
commit 126dd15633
2 changed files with 2 additions and 4 deletions

View File

@ -92,9 +92,7 @@ bool VulkanProcTable::SetupInstanceProcAddresses(
#if OS_FUCHSIA
[this, &handle]() -> bool {
ACQUIRE_PROC(CreateMagmaSurfaceKHR, handle);
ACQUIRE_PROC(ExportDeviceMemoryMAGMA, handle);
ACQUIRE_PROC(GetPhysicalDeviceMagmaPresentationSupportKHR, handle);
ACQUIRE_PROC(ImportSemaphoreFuchsiaHandleKHR, handle);
return true;
}();
#endif // OS_FUCHSIA
@ -146,7 +144,7 @@ bool VulkanProcTable::SetupDeviceProcAddresses(
ACQUIRE_PROC(ResetFences, handle);
ACQUIRE_PROC(WaitForFences, handle);
#if OS_FUCHSIA
ACQUIRE_PROC(ExportDeviceMemoryMAGMA, handle);
ACQUIRE_PROC(GetMemoryFuchsiaHandleKHR, handle);
ACQUIRE_PROC(ImportSemaphoreFuchsiaHandleKHR, handle);
#endif // OS_FUCHSIA
device_ = {handle, nullptr};

View File

@ -116,7 +116,7 @@ class VulkanProcTable : public fxl::RefCountedThreadSafe<VulkanProcTable> {
#endif // OS_ANDROID
#if OS_FUCHSIA
DEFINE_PROC(CreateMagmaSurfaceKHR);
DEFINE_PROC(ExportDeviceMemoryMAGMA);
DEFINE_PROC(GetMemoryFuchsiaHandleKHR);
DEFINE_PROC(GetPhysicalDeviceMagmaPresentationSupportKHR);
DEFINE_PROC(ImportSemaphoreFuchsiaHandleKHR);
#endif // OS_FUCHSIA