Implement Canvas support for iced_tiny_skia

This commit is contained in:
Héctor Ramón Jiménez 2023-03-01 21:34:26 +01:00
parent 3f6e28fa9b
commit 5fd5d1cdf8
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
65 changed files with 1354 additions and 570 deletions

View file

@ -1,11 +1,10 @@
use crate::quad;
use crate::text;
use crate::triangle;
use crate::{Settings, Transformation};
use crate::{Layer, Primitive, Settings, Transformation};
use iced_graphics::backend;
use iced_graphics::layer::Layer;
use iced_graphics::{Color, Font, Primitive, Size, Viewport};
use iced_graphics::{Color, Font, Size, Viewport};
#[cfg(feature = "tracing")]
use tracing::info_span;
@ -330,6 +329,8 @@ impl Backend {
}
impl iced_graphics::Backend for Backend {
type Geometry = ();
fn trim_measurements(&mut self) {
self.text_pipeline.trim_measurement_cache()
}