Preserve legacy timestamp waits and validate actual surface acknowledgements
This commit is contained in:
1 parent
3eccf58c5e
commit
dd5dee2767
2 files changed
+19
-7
No files matched your search
@@ -268,7 +268,8 @@ private class CallVideoTexture(context: Context, private val video: CallVideoEng
|
||||
val now = System.nanoTime(); commits++
|
||||
if (updateAt != 0L) { commitMaxUs = maxOf(commitMaxUs, (now - updateAt) / 1000); updateAt = 0 }
|
||||
// Если timestamp ещё старый, новое TextureView update само назначит draw/commit.
|
||||
video.presented(surface, texture.timestamp / 1000)
|
||||
val matched = video.presented(surface, texture.timestamp / 1000)
|
||||
if (!matched && (Build.VERSION.SDK_INT < 29 || !isHardwareAccelerated)) postOnAnimation { consumed(texture, surface) }
|
||||
if (reportAt == 0L) reportAt = now
|
||||
if (now - reportAt >= 1_000_000_000) {
|
||||
LogManager.addLog("DEBUG", "call", "video surface intervalMs=${(now - reportAt) / 1_000_000} " +
|
||||
|
||||
Reference in new issue
Block a user