it: add more tests
This commit is contained in:
parent
412626af59
commit
5e46feaeea
5 changed files with 623 additions and 0 deletions
|
|
@ -997,6 +997,16 @@ impl WlSurface {
|
|||
.push(XWaylandEvent::Configure(window));
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "it")]
|
||||
pub fn get_pending_damage(&self) -> (Vec<Rect>, Vec<Rect>, bool) {
|
||||
let pending = self.pending.borrow();
|
||||
(
|
||||
pending.surface_damage.clone(),
|
||||
pending.buffer_damage.clone(),
|
||||
pending.damage_full,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
const MAX_DAMAGE: usize = 32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue