diff --git a/crates/gpui3/src/app.rs b/crates/gpui3/src/app.rs index 498c45c2ab153e9a0199fc62d3c2bb0b900a482d..36de3b932b6c9e86e77edc127b7447af95c4f0ff 100644 --- a/crates/gpui3/src/app.rs +++ b/crates/gpui3/src/app.rs @@ -165,8 +165,6 @@ impl AppContext { }) .collect::>(); - dbg!(&dirty_window_ids); - for dirty_window_id in dirty_window_ids { self.update_window(dirty_window_id, |cx| cx.draw()) .unwrap() diff --git a/crates/gpui3/src/elements/img.rs b/crates/gpui3/src/elements/img.rs index 245b5d3918743404bc692385cff0861fb778a4af..28bc51a04d5c12f702c5de0b4e2e0e524cf58f70 100644 --- a/crates/gpui3/src/elements/img.rs +++ b/crates/gpui3/src/elements/img.rs @@ -75,12 +75,9 @@ impl Element for Img { let corner_radii = style.corner_radii.to_pixels(bounds, cx.rem_size()); cx.paint_image(bounds, corner_radii, order, data, self.grayscale)?; } else { - dbg!("not loaded"); cx.spawn(|view, mut cx| async move { - dbg!("awaiting image future"); if image_future.await.log_err().is_some() { view.update(&mut cx, |_, cx| { - dbg!("image future loaded"); cx.notify(); }) .ok(); diff --git a/crates/gpui3/src/platform/mac/metal_renderer.rs b/crates/gpui3/src/platform/mac/metal_renderer.rs index a018aad7623cdec236d1c97f5176a6f4f5fe65aa..84a5fd51261aaa959b2b8f91ce3dc8d1e42a6f51 100644 --- a/crates/gpui3/src/platform/mac/metal_renderer.rs +++ b/crates/gpui3/src/platform/mac/metal_renderer.rs @@ -131,6 +131,8 @@ impl MetalRenderer { } pub fn draw(&mut self, scene: &mut Scene) { + dbg!("draw scene"); + let layer = self.layer.clone(); let viewport_size = layer.drawable_size(); let viewport_size: Size = size( diff --git a/crates/gpui3/src/window.rs b/crates/gpui3/src/window.rs index 36761f60d4ef10dc52bc0159b8c86f7575c350a2..f255172c776276f5e8297e3037e033f982d0bfd3 100644 --- a/crates/gpui3/src/window.rs +++ b/crates/gpui3/src/window.rs @@ -109,7 +109,6 @@ impl<'a, 'w> WindowContext<'a, 'w> { } pub fn notify(&mut self) { - dbg!("ViewContext::notify"); self.window.dirty = true; } @@ -598,7 +597,6 @@ impl<'a, 'w, S: Send + Sync + 'static> ViewContext<'a, 'w, S> { } pub fn notify(&mut self) { - dbg!("ViewContext::notify"); self.window_cx.notify(); self.window_cx .app