wayland: implement commit-timing-v1
This commit is contained in:
parent
d45aaffdb3
commit
fac5445f2e
19 changed files with 434 additions and 15 deletions
|
|
@ -60,6 +60,7 @@ pub struct WlOutputGlobal {
|
|||
pub pos: Cell<Rect>,
|
||||
pub output_id: Rc<OutputId>,
|
||||
pub mode: Cell<backend::Mode>,
|
||||
pub refresh_nsec: Cell<u64>,
|
||||
pub modes: Vec<backend::Mode>,
|
||||
pub formats: CloneCell<Rc<Vec<&'static Format>>>,
|
||||
pub format: Cell<&'static Format>,
|
||||
|
|
@ -157,6 +158,7 @@ impl WlOutputGlobal {
|
|||
pos: Cell::new(Rect::new_sized(x, y, width, height).unwrap()),
|
||||
output_id: output_id.clone(),
|
||||
mode: Cell::new(*mode),
|
||||
refresh_nsec: Cell::new(mode.refresh_nsec()),
|
||||
modes,
|
||||
formats: CloneCell::new(Rc::new(vec![])),
|
||||
format: Cell::new(XRGB8888),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue