wayland: implement fifo-v1
This commit is contained in:
parent
d8e0375c48
commit
fe7175fab2
19 changed files with 416 additions and 23 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue