Checkpoint

This commit is contained in:
Antonio Scandurra
2023-10-11 09:17:25 +02:00
parent f1cc62c21f
commit 0fb7364235
5 changed files with 27 additions and 118 deletions
@@ -23,7 +23,7 @@ impl TextLayoutCache {
}
}
pub fn finish_frame(&self) {
pub fn end_frame(&self) {
let mut prev_frame = self.prev_frame.lock();
let mut curr_frame = self.curr_frame.write();
std::mem::swap(&mut *prev_frame, &mut *curr_frame);