Remove debug overlay from iced_tiny_skia for now
This commit is contained in:
parent
d6345ff122
commit
f0fa5f76cb
1 changed files with 0 additions and 38 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
use crate::core::alignment;
|
|
||||||
use crate::core::text;
|
use crate::core::text;
|
||||||
use crate::core::{Background, Color, Font, Point, Rectangle, Size, Vector};
|
use crate::core::{Background, Color, Font, Point, Rectangle, Size, Vector};
|
||||||
use crate::graphics::backend;
|
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();
|
self.text_pipeline.trim_cache();
|
||||||
|
|
||||||
#[cfg(feature = "image")]
|
#[cfg(feature = "image")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue