summaryrefslogtreecommitdiffstats
path: root/tiny_skia
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-26 16:15:53 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-26 16:15:53 +0200
commitf0fa5f76cb0b0e451b3fc86b1678403c103867e4 (patch)
tree13dd56f536b006621e0289faee298c7a55b09c87 /tiny_skia
parentd6345ff122e98fe716980301b2b0ea7342ad85d5 (diff)
downloadiced-f0fa5f76cb0b0e451b3fc86b1678403c103867e4.tar.gz
iced-f0fa5f76cb0b0e451b3fc86b1678403c103867e4.tar.bz2
iced-f0fa5f76cb0b0e451b3fc86b1678403c103867e4.zip
Remove `debug` overlay from `iced_tiny_skia` for now
Diffstat (limited to 'tiny_skia')
-rw-r--r--tiny_skia/src/backend.rs38
1 files changed, 0 insertions, 38 deletions
diff --git a/tiny_skia/src/backend.rs b/tiny_skia/src/backend.rs
index 974faa74..756e46b3 100644
--- a/tiny_skia/src/backend.rs
+++ b/tiny_skia/src/backend.rs
@@ -1,4 +1,3 @@
-use crate::core::alignment;
use crate::core::text;
use crate::core::{Background, Color, Font, Point, Rectangle, Size, Vector};
use crate::graphics::backend;
@@ -158,43 +157,6 @@ impl Backend {
}
}
- //if !overlay.is_empty() {
- // let bounds = Rectangle {
- // x: 0.0,
- // y: 0.0,
- // width: viewport.physical_width() as f32,
- // height: viewport.physical_height() as f32,
- // };
-
- // adjust_clip_mask(clip_mask, pixels, bounds);
-
- // for (i, text) in overlay.iter().enumerate() {
- // const OVERLAY_TEXT_SIZE: f32 = 20.0;
-
- // self.draw_primitive(
- // &Primitive::Text {
- // content: text.as_ref().to_owned(),
- // size: OVERLAY_TEXT_SIZE,
- // bounds: Rectangle {
- // x: 10.0,
- // y: 10.0 + i as f32 * OVERLAY_TEXT_SIZE * 1.2,
- // width: bounds.width - 1.0,
- // height: bounds.height - 1.0,
- // },
- // color: Color::BLACK,
- // font: Font::MONOSPACE,
- // horizontal_alignment: alignment::Horizontal::Left,
- // vertical_alignment: alignment::Vertical::Top,
- // },
- // pixels,
- // clip_mask,
- // bounds,
- // scale_factor,
- // Vector::ZERO,
- // );
- // }
- //}
-
self.text_pipeline.trim_cache();
#[cfg(feature = "image")]