buffers: drop Debug impls

This commit is contained in:
Torrie Fischer 2024-12-15 17:57:43 +01:00
parent 9aad55f369
commit 9c773f0335

View File

@ -12,14 +12,12 @@ use std::sync::atomic::AtomicBool;
use std::sync::RwLock;
use std::sync::{Arc, Mutex};
#[derive(Debug)]
struct ShaderBinding {
shader: Option<Box<dyn Shader>>,
rect: Rectangle<Virtual>,
opacity: u8
}
#[derive(Debug)]
struct SurfaceUpdate {
shader: Option<Option<Box<dyn Shader>>>,
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 {
fn default() -> Self {
SurfaceUpdate {
@ -58,7 +50,6 @@ impl Default for SurfaceUpdate {
}
}
#[derive(Debug)]
pub struct BufferedSurface {
updater: Arc<UpdateQueue>,
slot: usize
@ -98,7 +89,6 @@ impl Surface for BufferedSurface {
}
}
#[derive(Debug)]
struct UpdateQueue {
pending: Mutex<Vec<SurfaceUpdate>>,
damaged: AtomicBool
@ -135,7 +125,6 @@ impl UpdateQueue {
}
}
#[derive(Debug)]
pub struct ShaderChain {
bindings: Vec<ShaderBinding>,
updates: Arc<UpdateQueue>