Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed May 21, 2024
1 parent 494919d commit a4246d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/wayland/drm_syncobj/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@ pub struct DrmSyncobjCachedState {
impl Cacheable for DrmSyncobjCachedState {
fn commit(&mut self, _dh: &DisplayHandle) -> Self {
Self {
// TODO should take acquire/release points?
acquire_point: None,
release_point: None,
acquire_point: self.acquire_point.take(),
release_point: self.release_point.take(),
}
}

fn merge_into(self, into: &mut Self, _dh: &DisplayHandle) {
// TODO signa; release points
if self.acquire_point.is_some() && self.release_point.is_some() {
if let Some(release_point) = &into.release_point {
if let Err(err) = release_point.signal() {
Expand Down

0 comments on commit a4246d7

Please sign in to comment.