fix features

This commit is contained in:
galister
2026-01-09 20:27:20 +09:00
parent eb69ec8fe3
commit c799ecea93
12 changed files with 52 additions and 380 deletions

View File

@@ -1,6 +1,6 @@
use std::os::fd::RawFd;
use drm_fourcc::{DrmFormat, DrmModifier};
use drm_fourcc::{DrmFormat, DrmFourcc, DrmModifier};
#[cfg(feature = "egl")]
#[rustfmt::skip]
@@ -136,3 +136,12 @@ pub struct MouseMeta {
pub x: f32,
pub y: f32,
}
pub trait DmaExporter {
fn next_frame(
&mut self,
width: u32,
height: u32,
fourcc: DrmFourcc,
) -> Option<(FramePlane, DrmModifier)>;
}

View File

@@ -20,19 +20,10 @@ use smithay_client_toolkit::reexports::protocols_wlr::screencopy::v1::client::zw
use crate::{
WlxCapture,
frame::{FrameFormat, FramePlane, MemFdFrame, WlxFrame},
frame::{DmaExporter, FrameFormat, FramePlane, MemFdFrame, WlxFrame},
wayland::WlxClient,
};
pub trait DmaExporter {
fn next_frame(
&mut self,
width: u32,
height: u32,
fourcc: DrmFourcc,
) -> Option<(FramePlane, DrmModifier)>;
}
enum BufData {
Shm {
wl_buffer: WlBuffer,