-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move fields from
Buffer
into new BufferData
struct
Keeping `Buffer`s around is cumbersome because it borrows `FontSystem`. This tries to solve that by making `Buffer` a wrapper around a new `BufferData` struct that contains all data previously owned by `Buffer`. `Buffer::from_data` and `Buffer::into_data` allow converting between `Buffer` and `BufferData`. Users of `Buffer` don't need to change anything, because `Buffer` implements `Deref` and `DerefMut` with `Target = BufferData`.
- Loading branch information
1 parent
0548d7a
commit fed64d9
Showing
1 changed file
with
55 additions
and
23 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