fn opaque_fill_tiny_skia(bencher: &mut Bencher) {
    use tiny_skia::*;

    let mut pixmap = Pixmap::new(1000, 1000).unwrap();
    let mut canvas = Canvas::from(pixmap.as_mut());

    let mut paint = Paint::default();
    paint.set_color_rgba8(50, 127, 150, 255);

    let path = PathBuilder::from_rect(Rect::from_ltrb(100.0, 100.0, 900.0, 900.0).unwrap());

    bencher.iter(|| {
        canvas.fill_path(&path, &paint, FillRule::Winding);
    });
}
// Filling an opaque rectangle path.
// A chosen blending mode doesn't really matter in this case,
// since we are simply overwriting the pixels.
Filling an opaque rectangle path.
A chosen blending mode doesn't really matter in this case,
since we are simply overwriting the pixels.
Filling an opaque rectangle path . A chosen blending mode doesn ' t really matter in this case since we are simply overwriting the pixels .
fn opaque_fill_tiny_skia(bencher: &mut Bencher) {
    use tiny_skia::*;
    let mut pixmap = Pixmap::new(1000, 1000).unwrap();
    let mut canvas = Canvas::from(pixmap.as_mut());
    let mut paint = Paint::default();
    paint.set_color_rgba8(50, 127, 150, 255);
    let path = PathBuilder::from_rect(Rect::from_ltrb(100.0, 100.0, 900.0, 900.0).unwrap());
    bencher.iter(|| {
        canvas.fill_path(&path, &paint, FillRule::Winding);
    });
}
fn opaque_fill_tiny_skia ( bencher : & mut Bencher ) { use tiny_skia :: * ; let mut pixmap = Pixmap :: new ( 1000 , 1000 ) . unwrap ( ) ; let mut canvas = Canvas :: from ( pixmap . as_mut ( ) ) ; let mut paint = Paint :: default ( ) ; paint . set_color_rgba8 ( 50 , 127 , 150 , 255 ) ; let path = PathBuilder :: from_rect ( Rect :: from_ltrb ( 100.0 , 100.0 , 900.0 , 900.0 ) . unwrap ( ) ) ; bencher . iter ( | | { canvas . fill_path ( & path , & paint , FillRule :: Winding ) ; } ) ; }
Filling an opaque rectangle path.
Filling an opaque rectangle path .
bencher
&mut Bencher