summaryrefslogtreecommitdiffstats
path: root/glow/src
diff options
context:
space:
mode:
Diffstat (limited to 'glow/src')
-rw-r--r--glow/src/image.rs6
-rw-r--r--glow/src/quad.rs6
-rw-r--r--glow/src/triangle.rs6
3 files changed, 9 insertions, 9 deletions
diff --git a/glow/src/image.rs b/glow/src/image.rs
index 351b98fa..d3a25b5b 100644
--- a/glow/src/image.rs
+++ b/glow/src/image.rs
@@ -21,8 +21,8 @@ use glow::HasContext;
use std::cell::RefCell;
-#[cfg(feature = "trace")]
-use iced_profiling::info_span;
+#[cfg(feature = "tracing")]
+use tracing::info_span;
#[derive(Debug)]
pub(crate) struct Pipeline {
@@ -151,7 +151,7 @@ impl Pipeline {
images: &[layer::Image],
layer_bounds: Rectangle<u32>,
) {
- #[cfg(feature = "trace")]
+ #[cfg(feature = "tracing")]
let _ = info_span!("Glow::Image", "DRAW").entered();
unsafe {
diff --git a/glow/src/quad.rs b/glow/src/quad.rs
index fc918bf2..67d9a098 100644
--- a/glow/src/quad.rs
+++ b/glow/src/quad.rs
@@ -7,8 +7,8 @@ use glow::HasContext;
use iced_graphics::layer;
use iced_native::Rectangle;
-#[cfg(feature = "trace")]
-use iced_profiling::info_span;
+#[cfg(feature = "tracing")]
+use tracing::info_span;
#[derive(Debug)]
pub enum Pipeline {
@@ -45,7 +45,7 @@ impl Pipeline {
scale: f32,
bounds: Rectangle<u32>,
) {
- #[cfg(feature = "trace")]
+ #[cfg(feature = "tracing")]
let _ = info_span!("Glow::Quad", "DRAW").enter();
match self {
diff --git a/glow/src/triangle.rs b/glow/src/triangle.rs
index 11d24349..42c88455 100644
--- a/glow/src/triangle.rs
+++ b/glow/src/triangle.rs
@@ -9,8 +9,8 @@ use iced_graphics::triangle::{ColoredVertex2D, Vertex2D};
use glow::HasContext;
use std::marker::PhantomData;
-#[cfg(feature = "trace")]
-use iced_profiling::info_span;
+#[cfg(feature = "tracing")]
+use tracing::info_span;
const DEFAULT_VERTICES: usize = 1_000;
const DEFAULT_INDICES: usize = 1_000;
@@ -61,7 +61,7 @@ impl Pipeline {
transformation: Transformation,
scale_factor: f32,
) {
- #[cfg(feature = "trace")]
+ #[cfg(feature = "tracing")]
let _ = info_span!("Glow::Triangle", "DRAW").enter();
unsafe {