refactor: split cargo workspace
This commit is contained in:
parent
5db14936e7
commit
1c21bd1259
695 changed files with 32023 additions and 44964 deletions
|
|
@ -6,7 +6,6 @@ use {
|
|||
scale::Scale,
|
||||
state::State,
|
||||
tree::Transform,
|
||||
video::drm::DrmError,
|
||||
},
|
||||
indexmap::IndexMap,
|
||||
std::{ops::Deref, rc::Rc},
|
||||
|
|
@ -24,8 +23,6 @@ pub enum ScreenshooterError {
|
|||
AllocatorError(#[from] AllocatorError),
|
||||
#[error(transparent)]
|
||||
RenderError(#[from] GfxError),
|
||||
#[error(transparent)]
|
||||
DrmError(#[from] DrmError),
|
||||
#[error("Render context does not support XRGB8888")]
|
||||
XRGB8888,
|
||||
#[error("Render context supports no modifiers for XRGB8888 rendering")]
|
||||
|
|
@ -93,7 +90,7 @@ pub fn take_screenshot(
|
|||
state.color_manager.srgb_linear(),
|
||||
)?;
|
||||
let drm = match allocator.drm() {
|
||||
Some(drm) => Some(drm.dup_render()?.fd().clone()),
|
||||
Some(drm) => Some(drm.dup_render_fd()?),
|
||||
_ => None,
|
||||
};
|
||||
Ok(Screenshot { drm, bo })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue