src/third_party/angle/src/tests/gl_tests/VulkanExternalImageTest.cpp
// Support for Zircon handle types is mandatory on Fuchsia.
Support for Zircon handle types is mandatory on Fuchsia.
Support for Zircon handle types is mandatory on Fuchsia .
TEST_P(VulkanExternalImageTest, ShouldSupportExternalHandlesFuchsia)
{
    ANGLE_SKIP_TEST_IF(!IsFuchsia());
    EXPECT_TRUE(EnsureGLExtensionEnabled("GL_ANGLE_memory_object_fuchsia"));
    EXPECT_TRUE(EnsureGLExtensionEnabled("GL_ANGLE_semaphore_fuchsia"));
    VulkanExternalHelper helper;
    helper.initialize(isSwiftshader(), enableDebugLayers());
    EXPECT_TRUE(helper.canCreateSemaphoreZirconEvent());
    EXPECT_TRUE(helper.canCreateImageZirconVmo(VK_FORMAT_R8G8B8A8_UNORM, VK_IMAGE_TYPE_2D,
                                               VK_IMAGE_TILING_OPTIMAL, kDefaultImageCreateFlags,
                                               kDefaultImageUsageFlags));
}
TEST_P ( VulkanExternalImageTest , ShouldSupportExternalHandlesFuchsia ) { ANGLE_SKIP_TEST_IF ( ! IsFuchsia ( ) ) ; EXPECT_TRUE ( EnsureGLExtensionEnabled ( " " ) ) ; EXPECT_TRUE ( EnsureGLExtensionEnabled ( " " ) ) ; VulkanExternalHelper helper ; helper . initialize ( isSwiftshader ( ) , enableDebugLayers ( ) ) ; EXPECT_TRUE ( helper . canCreateSemaphoreZirconEvent ( ) ) ; EXPECT_TRUE ( helper . canCreateImageZirconVmo ( VK_FORMAT_R8G8B8A8_UNORM , VK_IMAGE_TYPE_2D , VK_IMAGE_TILING_OPTIMAL , kDefaultImageCreateFlags , kDefaultImageUsageFlags ) ) ; }
Support for Zircon handle types is mandatory on Fuchsia.
Support for Zircon handle types is mandatory on Fuchsia .