Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCache AzScaledFont objects in the render task #83
Comments
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
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.