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

Async rendering for Svg widget #378

Merged
merged 11 commits into from
Jan 25, 2023
Merged

Async rendering for Svg widget #378

merged 11 commits into from
Jan 25, 2023

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Jan 24, 2023

Follow up on #376 adding async rendering for Svg.

Since the usvg::Tree type is neither Sync nor Send (see RazrFalcon/resvg#544), this re-parses the data each time the SVG is rendered (much faster than the render itself). The main drawback is that now we must retain access to the data somehow: here either by using a &'static [u8] or an Arc<[u8]>.

@dhardy dhardy merged commit 05f36ee into master Jan 25, 2023
@dhardy dhardy mentioned this pull request Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant