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.

Required Methods§

Trait Implementations§

source§

impl Debug for dyn Painter

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§