Run MapLibreAndroidTestApp activities as instrumentation tests (#3594)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Adrian Cojocaru
2025-07-23 18:46:00 +03:00
committed by GitHub
parent b7f129cc00
commit a015b6bf12
20 changed files with 394 additions and 199 deletions

View File

@@ -20,16 +20,17 @@ public:
std::vector<const char*> getDeviceExtensions() override { return {VK_KHR_SWAPCHAIN_EXTENSION_NAME}; }
void createPlatformSurface() override {
auto& glfwBackend = static_cast<GLFWVulkanBackend&>(backend);
auto& backendImpl = static_cast<GLFWVulkanBackend&>(backend);
VkSurfaceKHR surface_;
VkResult result = glfwCreateWindowSurface(
glfwBackend.getInstance().get(), glfwBackend.getWindow(), nullptr, &surface_);
backendImpl.getInstance().get(), backendImpl.getWindow(), nullptr, &surface_);
if (result != VK_SUCCESS) throw std::runtime_error("Failed to create glfw window surface");
surface = vk::UniqueSurfaceKHR(
surface_, vk::ObjectDestroy<vk::Instance, vk::DispatchLoaderDynamic>(glfwBackend.getInstance().get()));
surface = vk::UniqueSurfaceKHR(surface_,
vk::ObjectDestroy<vk::Instance, vk::DispatchLoaderDynamic>(
backendImpl.getInstance().get(), nullptr, backendImpl.getDispatcher()));
}
void bind() override {}