buffers: drop Debug impls
This commit is contained in:
parent
9aad55f369
commit
9c773f0335
@ -12,14 +12,12 @@ use std::sync::atomic::AtomicBool;
|
|||||||
use std::sync::RwLock;
|
use std::sync::RwLock;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
struct ShaderBinding {
|
struct ShaderBinding {
|
||||||
shader: Option<Box<dyn Shader>>,
|
shader: Option<Box<dyn Shader>>,
|
||||||
rect: Rectangle<Virtual>,
|
rect: Rectangle<Virtual>,
|
||||||
opacity: u8
|
opacity: u8
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
struct SurfaceUpdate {
|
struct SurfaceUpdate {
|
||||||
shader: Option<Option<Box<dyn Shader>>>,
|
shader: Option<Option<Box<dyn Shader>>>,
|
||||||
rect: Option<Rectangle<Virtual>>,
|
rect: Option<Rectangle<Virtual>>,
|
||||||
@ -41,12 +39,6 @@ impl SurfaceUpdate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Debug for Box<dyn Shader> {
|
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
||||||
f.debug_struct("Shader").finish()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Default for SurfaceUpdate {
|
impl Default for SurfaceUpdate {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
SurfaceUpdate {
|
SurfaceUpdate {
|
||||||
@ -58,7 +50,6 @@ impl Default for SurfaceUpdate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
pub struct BufferedSurface {
|
pub struct BufferedSurface {
|
||||||
updater: Arc<UpdateQueue>,
|
updater: Arc<UpdateQueue>,
|
||||||
slot: usize
|
slot: usize
|
||||||
@ -98,7 +89,6 @@ impl Surface for BufferedSurface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
struct UpdateQueue {
|
struct UpdateQueue {
|
||||||
pending: Mutex<Vec<SurfaceUpdate>>,
|
pending: Mutex<Vec<SurfaceUpdate>>,
|
||||||
damaged: AtomicBool
|
damaged: AtomicBool
|
||||||
@ -135,7 +125,6 @@ impl UpdateQueue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
pub struct ShaderChain {
|
pub struct ShaderChain {
|
||||||
bindings: Vec<ShaderBinding>,
|
bindings: Vec<ShaderBinding>,
|
||||||
updates: Arc<UpdateQueue>
|
updates: Arc<UpdateQueue>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user