Skip to content

Commit

Permalink
WIP anvil/udev: Dynamic support for pixman rendererer
Browse files Browse the repository at this point in the history
WIP debug

still has errors

WIP send

WIP
  • Loading branch information
ids1024 committed Dec 5, 2024
1 parent d0e0d8a commit 372b958
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 93 deletions.
2 changes: 1 addition & 1 deletion anvil/src/drawing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ where
impl<R> RenderElement<R> for FpsElement<<R as Renderer>::TextureId>
where
R: Renderer + ImportAll,
<R as Renderer>::TextureId: 'static,
<R as Renderer>::TextureId: Send + 'static,
{
fn draw(
&self,
Expand Down
8 changes: 5 additions & 3 deletions anvil/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ use crate::{

smithay::backend::renderer::element::render_elements! {
pub CustomRenderElements<R> where
R: ImportAll + ImportMem;
R: ImportAll + ImportMem,
<R as Renderer>::TextureId: Send;
Pointer=PointerRenderElement<R>,
Surface=WaylandSurfaceRenderElement<R>,
#[cfg(feature = "debug")]
Expand All @@ -51,7 +52,8 @@ impl<R: Renderer> std::fmt::Debug for CustomRenderElements<R> {
}

smithay::backend::renderer::element::render_elements! {
pub OutputRenderElements<R, E> where R: ImportAll + ImportMem;
pub OutputRenderElements<R, E> where R: ImportAll + ImportMem,
<R as Renderer>::TextureId: Send;
Space=SpaceRenderElements<R, E>,
Window=Wrap<E>,
Custom=CustomRenderElements<R>,
Expand Down Expand Up @@ -201,7 +203,7 @@ pub fn render_output<'a, 'd, R>(
) -> Result<RenderOutputResult<'d>, OutputDamageTrackerError<R>>
where
R: Renderer + ImportAll + ImportMem,
R::TextureId: Clone + 'static,
R::TextureId: Clone + Send + 'static,
{
let (elements, clear_color) =
output_elements(output, space, custom_elements, renderer, show_window_preview);
Expand Down
Loading

0 comments on commit 372b958

Please sign in to comment.