gpui: Add wgpu Surface element and GPU device requirements API for Linux (#39)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user