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

Experiment: Use rayon when resolving glyphs #786

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
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
Loading