chore: cleanup new blur code
This commit is contained in:
parent
7fbeb8787f
commit
0c805d9b30
2 changed files with 7 additions and 12 deletions
|
|
@ -11,27 +11,22 @@ use crate::{
|
|||
use smithay::backend::renderer::element::texture::TextureRenderElement;
|
||||
use smithay::{
|
||||
backend::{
|
||||
allocator::{Fourcc, dmabuf::Dmabuf},
|
||||
allocator::dmabuf::Dmabuf,
|
||||
drm::DrmDeviceFd,
|
||||
renderer::{
|
||||
Bind, Blit, ContextId, ExportMem, Frame as _, FrameContext, ImportAll, ImportMem,
|
||||
Offscreen, Renderer, RendererSuper,
|
||||
Bind, Blit, ContextId, ExportMem, ImportAll, ImportMem, Offscreen, Renderer,
|
||||
element::{
|
||||
Element, Id, Kind, RenderElement, UnderlyingStorage,
|
||||
utils::{CropRenderElement, Relocate, RelocateRenderElement, RescaleRenderElement},
|
||||
},
|
||||
gles::{GlesError, GlesRenderbuffer, GlesTexture, element::TextureShaderElement},
|
||||
glow::{GlowFrame, GlowRenderer},
|
||||
multigpu::{
|
||||
MultiTexture,
|
||||
gbm::{GbmGlesBackend, GbmGlesDevice},
|
||||
},
|
||||
multigpu::MultiTexture,
|
||||
utils::{CommitCounter, DamageSet, OpaqueRegions},
|
||||
},
|
||||
},
|
||||
utils::{
|
||||
Buffer as BufferCoords, Logical, Physical, Point, Rectangle, Scale, Size,
|
||||
user_data::UserDataMap,
|
||||
Buffer as BufferCoords, Logical, Physical, Point, Rectangle, Scale, user_data::UserDataMap,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ use smithay::{
|
|||
allocator::Fourcc,
|
||||
renderer::{
|
||||
Bind, BlitFrame, Color32F, ContextId, Frame, FrameContext, ImportAll, Offscreen,
|
||||
Renderer, RendererSuper, Texture, TextureFilter,
|
||||
Renderer, Texture, TextureFilter,
|
||||
element::{Element, Id, Kind, RenderElement},
|
||||
gles::{
|
||||
GlesError, GlesFrame, GlesRenderer, GlesTexProgram, GlesTexture, Uniform,
|
||||
|
|
@ -115,7 +115,7 @@ impl BlurShaders {
|
|||
}
|
||||
}
|
||||
|
||||
type BlurTexture<T: Texture> = Mutex<Option<T>>;
|
||||
type BlurTexture<T> = Mutex<Option<T>>;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct BlurState {
|
||||
|
|
@ -473,7 +473,7 @@ where
|
|||
src,
|
||||
dst,
|
||||
&damage,
|
||||
&opaque_regions,
|
||||
opaque_regions,
|
||||
Transform::Normal,
|
||||
1.0,
|
||||
)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue