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

cache default font manager in canvas #339

Merged

Conversation

schiller-manuel
Copy link
Contributor

Skia.FontMgr.RefDefault() creates a new JSI host object everytime it is called.
By caching the default font manager, Canvas avoids creation of this wrapper object upon every render.

`Skia.FontMgr.RefDefault()` creates a new JSI host object everytime it is called.
By caching the default font manager, Canvas avoids creation of this wrapper object upon every render.
@wcandillon wcandillon self-requested a review April 2, 2022 16:28
@wcandillon wcandillon merged commit c8459dd into Shopify:main Apr 2, 2022
@wcandillon
Copy link
Contributor

Thks a lot 🙌🏼

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.

2 participants