metal: latch hardware cursors in the backend
This commit is contained in:
parent
12c9b36ded
commit
93bfb9c0b4
7 changed files with 204 additions and 186 deletions
|
|
@ -87,7 +87,7 @@ impl OutputSchedule {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn presented(&self) {
|
||||
pub fn latched(&self) {
|
||||
self.last_present_nsec.set(self.eng.now().nsec());
|
||||
self.present_scheduled.set(false);
|
||||
self.iteration.fetch_add(1);
|
||||
|
|
@ -166,9 +166,8 @@ impl OutputSchedule {
|
|||
}
|
||||
if self.needs_hardware_cursor_commit.take() {
|
||||
if let Some(hc) = self.hardware_cursor.get() {
|
||||
if hc.schedule_present() {
|
||||
self.present_scheduled.set(true);
|
||||
}
|
||||
hc.damage();
|
||||
self.present_scheduled.set(true);
|
||||
}
|
||||
}
|
||||
if self.needs_software_cursor_damage.take() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue