-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only store Arc<Glyph> if druid feature is enabled
This was motivated by seeing some code where a user (@ctrlcctrlv) was jumping through hoops to get around the fact that we were using `Arc`. `Arc` was only used originally because it is important for druid, but I'm not sure it makes sense as a more general design. With this patch, we will only use `Arc` if the user enables the 'druid' feature. The default API now operates on `Glyph` objects directly; where needed there are new _raw methods, behind the 'druid' feature, that operaate on Arc<Glyph>.
- Loading branch information
Showing
2 changed files
with
79 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters