Stop creating image pipeline when unnecessary

This commit is contained in:
Héctor Ramón Jiménez 2020-02-28 14:38:42 +01:00
parent fc55e3a3df
commit 4e7159c22c
11 changed files with 114 additions and 86 deletions

View file

@ -30,13 +30,11 @@ pub mod triangle;
pub mod widget;
pub mod window;
mod image;
mod primitive;
mod quad;
mod renderer;
mod target;
mod text;
mod texture;
mod transformation;
mod viewport;
@ -52,6 +50,11 @@ pub use viewport::Viewport;
#[doc(no_inline)]
pub use widget::*;
pub(crate) use self::image::Image;
pub(crate) use quad::Quad;
pub(crate) use transformation::Transformation;
#[cfg(any(feature = "image", feature = "svg"))]
mod image;
#[cfg(any(feature = "image", feature = "svg"))]
pub(crate) use self::image::Image;