gpui: Add wgpu Surface element and GPU device requirements API for Linux (#39)

This commit is contained in:
Leonard Seibold
2026-06-07 01:53:18 -04:00
committed by GitHub
parent d54ef9dcbe
commit 6d043b22e4
13 changed files with 304 additions and 56 deletions
+5
View File
@@ -92,6 +92,7 @@ pub(crate) trait LinuxClient {
fn read_from_clipboard(&self) -> Option<ClipboardItem>;
fn active_window(&self) -> Option<AnyWindowHandle>;
fn window_stack(&self) -> Option<Vec<AnyWindowHandle>>;
fn set_gpu_requirements(&self, _requirements: Box<dyn std::any::Any>) {}
fn run(&self);
#[cfg(any(feature = "wayland", feature = "x11"))]
@@ -316,6 +317,10 @@ impl<P: LinuxClient + 'static> Platform for LinuxPlatform<P> {
self.inner.open_window(handle, options)
}
fn set_gpu_requirements(&self, requirements: Box<dyn std::any::Any>) {
self.inner.set_gpu_requirements(requirements);
}
fn open_url(&self, url: &str) {
self.inner.open_uri(url);
}