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 AzScaledFont objects in the render task #83

Closed
burg opened this issue Sep 18, 2012 · 0 comments
Closed

Cache AzScaledFont objects in the render task #83

burg opened this issue Sep 18, 2012 · 0 comments

Comments

@burg
Copy link

@burg burg commented Sep 18, 2012

The display item for drawing glyphs creates a new Cairo and Azure font resource for every paint(!!!). AFAIK, the Azure font resources can be reused over and over, just like native font resources.

I suggest lazily creating Azure fonts within the Font object (via get_azure_font()), or creating a separate cache that maps between Font objects/normalized font descriptors and the Azure font resources used to draw glyphs.

@burg burg closed this in eb09425 Oct 25, 2012
ChrisParis pushed a commit to ChrisParis/servo that referenced this issue Sep 7, 2014
Fix a bug in the test for document.dir.
glennw added a commit to glennw/servo that referenced this issue Jan 16, 2017
Implement binning for the texture cache and a couple more improvements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.