Skip to content

Commit

Permalink
Use rayon when resolving glyphs
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Jan 9, 2025
1 parent 382e5d8 commit 897dea6
Show file tree
Hide file tree
Showing 6 changed files with 255 additions and 104 deletions.
47 changes: 47 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion vello_encoding/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vello_encoding"
version.workspace = true # We mimic Vello's version
version.workspace = true # We mimic Vello's version
description = "Vello types that represent the data that needs to be rendered."
categories = ["rendering", "graphics"]
keywords = ["2d", "vector-graphics"]
Expand Down Expand Up @@ -30,3 +30,5 @@ skrifa = { workspace = true }
peniko = { workspace = true }
guillotiere = { version = "0.6.2" }
smallvec = { workspace = true }
rayon = "1.10.0"
tracing = { default-features = false, version = "0.1.41" }
2 changes: 1 addition & 1 deletion vello_encoding/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl Encoding {
self.encode_style(Style::from_stroke(stroke));
}

fn encode_style(&mut self, style: Style) {
pub(crate) fn encode_style(&mut self, style: Style) {
if self.flags & Self::FORCE_NEXT_STYLE != 0 || self.styles.last() != Some(&style) {
self.path_tags.push(PathTag::STYLE);
self.styles.push(style);
Expand Down
Loading

0 comments on commit 897dea6

Please sign in to comment.