render/blur: Cache native texture type
This commit is contained in:
parent
c92b91221c
commit
f6cb4519a0
11 changed files with 74 additions and 61 deletions
|
|
@ -1112,7 +1112,7 @@ impl<P: Program + Send + 'static> IcedElement<P> {
|
|||
}
|
||||
|
||||
render_elements! {
|
||||
pub IcedRenderElement<R> where R: ImportMem + AsGlowRenderer;
|
||||
pub IcedRenderElement<R> where R: ImportMem + AsGlowRenderer, R::TextureId: Send;
|
||||
UI=MemoryRenderBufferRenderElement<R>,
|
||||
Blur=BlurElement,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ pub fn screenshot_window(state: &mut State, surface: &CosmicSurface) {
|
|||
fn render_window<R>(renderer: &mut R, window: &CosmicSurface) -> anyhow::Result<()>
|
||||
where
|
||||
R: Renderer + ImportAll + Offscreen<GlesRenderbuffer> + ExportMem + AsGlowRenderer,
|
||||
R::TextureId: Clone + 'static,
|
||||
R::TextureId: Send + Clone + 'static,
|
||||
R::Error: Send + Sync + 'static,
|
||||
{
|
||||
let bbox = bbox_from_surface_tree(&window.wl_surface().unwrap(), (0, 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue