diff --git a/piet-wgsl/examples/winit/src/main.rs b/piet-wgsl/examples/winit/src/main.rs index 961d101..0a98af3 100644 --- a/piet-wgsl/examples/winit/src/main.rs +++ b/piet-wgsl/examples/winit/src/main.rs @@ -65,7 +65,7 @@ async fn run(event_loop: EventLoop<()>, window: Window) { match scene_ix % N_SCENES { 0 => test_scene::render_anim_frame(&mut builder, &mut simple_text, current_frame), 1 => test_scene::render_blend_grid(&mut builder), - 2 => test_scene::render_tiger(&mut builder, false), + 2 => test_scene::render_tiger(&mut builder), 3 => test_scene::render_brush_transform(&mut builder, current_frame), 4 => test_scene::render_funky_paths(&mut builder), _ => test_scene::render_scene(&mut builder), diff --git a/piet-wgsl/examples/winit/src/test_scene.rs b/piet-wgsl/examples/winit/src/test_scene.rs index 915a943..dccb050 100644 --- a/piet-wgsl/examples/winit/src/test_scene.rs +++ b/piet-wgsl/examples/winit/src/test_scene.rs @@ -48,9 +48,8 @@ pub fn render_funky_paths(sb: &mut SceneBuilder) { const N_CIRCLES: usize = 0; #[allow(unused)] -pub fn render_svg(sb: &mut SceneBuilder, svg: &PicoSvg, print_stats: bool) { +pub fn render_svg(sb: &mut SceneBuilder, svg: &PicoSvg) { use crate::pico_svg::*; - //let start = std::time::Instant::now(); for item in &svg.items { match item { Item::Fill(fill) => { @@ -76,12 +75,12 @@ pub fn render_svg(sb: &mut SceneBuilder, svg: &PicoSvg, print_stats: bool) { } #[allow(unused)] -pub fn render_tiger(sb: &mut SceneBuilder, print_stats: bool) { +pub fn render_tiger(sb: &mut SceneBuilder) { use super::pico_svg::*; let xml_str = std::str::from_utf8(include_bytes!("../../assets/Ghostscript_Tiger.svg")).unwrap(); let svg = PicoSvg::load(xml_str, 6.0).unwrap(); - render_svg(sb, &svg, print_stats); + render_svg(sb, &svg); } pub fn render_scene(sb: &mut SceneBuilder) {