Skip to content

Commit

Permalink
Revert "Skia: Don't use Vulkan by default"
Browse files Browse the repository at this point in the history
This reverts commit ac53049.

After b007525 we should retain the
ability to opt into vulkan renderer by enabling the vulkan renderer
feature.

cc slint-ui#5188
  • Loading branch information
tronical authored and Montel committed May 7, 2024
1 parent b74417d commit 45fec6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/renderers/skia/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ pub mod opengl_surface;
pub use skia_safe;

cfg_if::cfg_if! {
if #[cfg(skia_backend_opengl)] {
if #[cfg(skia_backend_vulkan)] {
type DefaultSurface = vulkan_surface::VulkanSurface;
} else if #[cfg(skia_backend_opengl)] {
type DefaultSurface = opengl_surface::OpenGLSurface;
} else if #[cfg(skia_backend_metal)] {
type DefaultSurface = metal_surface::MetalSurface;
} else if #[cfg(skia_backend_d3d)] {
type DefaultSurface = d3d_surface::D3DSurface;
} else if #[cfg(skia_backend_vulkan)] {
type DefaultSurface = vulkan_surface::VulkanSurface;
}
}

Expand Down

0 comments on commit 45fec6d

Please sign in to comment.