Trait script_traits::Painter
source · pub trait Painter: SpeculativePainter {
// Required method
fn draw_a_paint_image(
&self,
size: Size2D<f32, CSSPixel>,
zoom: Scale<f32, CSSPixel, DevicePixel>,
properties: Vec<(Atom, String)>,
arguments: Vec<String>,
) -> Result<DrawAPaintImageResult, PaintWorkletError>;
}
Expand description
Execute paint code in the worklet thread pool.