Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump tiny-skia and resvg #12

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@ resolver = "2"
[dependencies]
image = "0.24.3"
log = "0.4.14"
hashbrown = "0.11.2"
unicode-width = "0.1.8"
include_dir = "0.6.0"
sha2 = "0.9.8"
tiny-skia = "0.6.3"
resvg = "0.22.0"
usvg = "0.22.0"
hashbrown = "0.12.3"
unicode-width = "0.1.9"
include_dir = "0.7.2"
sha2 = "0.10.2"
tiny-skia = "0.8.0"
resvg = { git = "https://github.com/ghishadow/resvg", branch = "master", version = "0.23.0"}
linked-hash-map = "0.5.4"
pathfinder_geometry = "0.5.1"
lyon = "0.17.5"
piet = "0.4.0"
lyon = "0.17.10"
piet = "0.5.0"
swash = { git = "https://github.com/lapce/swash" }
# swash = { path = "../workspaces/swash" }
parley = { git = "https://github.com/lapce/parley" }
# parley = { path = "../workspaces/parley" }
glow = "0.11.2"
glam = "0.10"
glam = "0.21.3"
bytemuck = { version = "1.7.2", features = ["derive"] }
1 change: 1 addition & 0 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ pub enum Brush {
Solid(Color),
}

#[derive(Clone)]
pub struct WgpuImage {
pub img: RgbaImage,
pub(crate) hash: Vec<u8>,
Expand Down
2 changes: 1 addition & 1 deletion src/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use glow::HasContext;
use linked_hash_map::LinkedHashMap;
use piet::kurbo::{Point, Rect, Size};
use sha2::{Digest, Sha256};

use resvg::usvg;
use crate::context::WgpuImage;

#[derive(Clone)]
Expand Down
2 changes: 1 addition & 1 deletion src/transformation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct Transformation(Mat4);
impl Transformation {
/// Get the identity transformation.
pub fn identity() -> Transformation {
Transformation(Mat4::identity())
Transformation(Mat4::IDENTITY)
}

/// Creates an orthographic projection.
Expand Down