diff options
author | 2024-03-22 05:27:31 +0100 | |
---|---|---|
committer | 2024-03-22 05:27:31 +0100 | |
commit | 1f13a91361258a1607c71f4840a26a6437f88612 (patch) | |
tree | 972fd3bd7afbab9958d16b8475d42ff3e41df484 /tiny_skia | |
parent | bbafeed13d20f2cbd6fc18b949b34596aa0c6c2e (diff) | |
download | iced-1f13a91361258a1607c71f4840a26a6437f88612.tar.gz iced-1f13a91361258a1607c71f4840a26a6437f88612.tar.bz2 iced-1f13a91361258a1607c71f4840a26a6437f88612.zip |
Make `iced_tiny_skia` optional with a `tiny-skia` feature
Diffstat (limited to 'tiny_skia')
-rw-r--r-- | tiny_skia/src/backend.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tiny_skia/src/backend.rs b/tiny_skia/src/backend.rs index f6bb1c86..b0dd4759 100644 --- a/tiny_skia/src/backend.rs +++ b/tiny_skia/src/backend.rs @@ -5,6 +5,7 @@ use crate::graphics::backend; use crate::graphics::text; use crate::graphics::{Damage, Viewport}; use crate::primitive::{self, Primitive}; +use crate::window; use std::borrow::Cow; @@ -990,6 +991,8 @@ fn rounded_box_sdf( } impl iced_graphics::Backend for Backend { + type Compositor = window::Compositor; + type Primitive = primitive::Custom; } |