1
0
Fork 0
forked from wry/wry

wayland: implement fifo-v1

This commit is contained in:
Julian Orth 2024-09-13 16:01:49 +02:00
parent d8e0375c48
commit fe7175fab2
19 changed files with 416 additions and 23 deletions

View file

@ -95,7 +95,7 @@ pub struct OutputNode {
}
pub trait LatchListener {
fn after_latch(self: Rc<Self>, on: &OutputNode);
fn after_latch(self: Rc<Self>, on: &OutputNode, tearing: bool);
}
pub trait VblankListener {
@ -135,10 +135,10 @@ pub async fn output_render_data(state: Rc<State>) {
}
impl OutputNode {
pub fn latched(&self) {
pub fn latched(&self, tearing: bool) {
self.schedule.latched();
for listener in self.latch_event.iter() {
listener.after_latch(self);
listener.after_latch(self, tearing);
}
}