pub trait CustomPaintSource: 'static {
// Required methods
fn resume(&mut self, device_handle: &DeviceHandle);
fn suspend(&mut self);
fn render(
&mut self,
ctx: CustomPaintCtx<'_>,
width: u32,
height: u32,
scale: f64,
) -> Option<TextureHandle>;
}