kms/surface: Don't send screencopysuccess() until sync point is reached
This commit is contained in:
parent
28e9024681
commit
10c05bc1d4
2 changed files with 40 additions and 2 deletions
|
|
@ -819,8 +819,12 @@ impl SurfaceThreadState {
|
|||
|
||||
self.timings.presented(clock);
|
||||
|
||||
while let Ok(PendingImageCopyData { frame, damage, .. }) = frames.recv() {
|
||||
frame.success(self.output.current_transform(), damage, clock);
|
||||
while let Ok(pending_image_copy_data) = frames.recv() {
|
||||
pending_image_copy_data.send_success_when_ready(
|
||||
self.output.current_transform(),
|
||||
&self.loop_handle,
|
||||
clock,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue