fix features
This commit is contained in:
@@ -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)>;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user