Fix refresh passed to presentation feedback

This commit is contained in:
Ivan Molodetskikh
2023-09-04 14:26:55 +04:00
parent 786e0fa4f0
commit 59a6119f46
2 changed files with 22 additions and 15 deletions
+4
View File
@@ -24,6 +24,10 @@ impl FrameClock {
}
}
pub fn refresh_interval_ns(&self) -> Option<NonZeroU64> {
self.refresh_interval_ns
}
pub fn presented(&mut self, presentation_time: Duration) {
if presentation_time.is_zero() {
// Not interested in these.