vulkan: create the macos/ios-specific displays

This commit is contained in:
Matthew Waters 2019-09-12 00:10:37 +10:00
parent 96b2413616
commit 656a0cde84

View file

@ -217,6 +217,16 @@ gst_vulkan_display_new_with_type (GstVulkanInstance * instance,
display = GST_VULKAN_DISPLAY (gst_vulkan_display_wayland_new (NULL)); display = GST_VULKAN_DISPLAY (gst_vulkan_display_wayland_new (NULL));
} }
#endif #endif
#if GST_VULKAN_HAVE_WINDOW_COCOA
if (!display && type & GST_VULKAN_DISPLAY_TYPE_COCOA) {
display = GST_VULKAN_DISPLAY (gst_vulkan_display_cocoa_new ());
}
#endif
#if GST_VULKAN_HAVE_WINDOW_IOS
if (!display && type & GST_VULKAN_DISPLAY_TYPE_IOS) {
display = GST_VULKAN_DISPLAY (gst_vulkan_display_ios_new ());
}
#endif
if (display) if (display)
display->instance = gst_object_ref (instance); display->instance = gst_object_ref (instance);