Skip to content

Commit

Permalink
WIP send
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Dec 4, 2024
1 parent 881cda5 commit 70470be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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
2 changes: 1 addition & 1 deletion anvil/src/udev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ where
fn initial_render<R, Target>(surface: &mut SurfaceData, renderer: &mut R) -> Result<(), SwapBuffersError>
where
R: Renderer + ImportEgl + ImportDmaWl + ImportMemWl + ExportMem + Bind<Dmabuf> + Offscreen<Target>,
<R as Renderer>::TextureId: Clone + 'static,
<R as Renderer>::TextureId: Clone + Send + 'static,
SwapBuffersError: From<<R as Renderer>::Error>,
{
surface
Expand Down

0 comments on commit 70470be

Please sign in to comment.