TransactionStats
class TransactionStats
kotlin.Any | |
↳ | android.view.SurfaceControl.TransactionStats |
Transaction stats given to the listener registered in SurfaceControl.Transaction#addTransactionCompletedListener
Summary
Public methods | |
---|---|
Long |
Returns the timestamp (in CLOCK_MONOTONIC) of when the frame was latched by the framework and queued for presentation. |
SyncFence |
Returns a new SyncFence that signals when the transaction has been presented. |
Public methods
getLatchTimeNanos
fun getLatchTimeNanos(): Long
Returns the timestamp (in CLOCK_MONOTONIC) of when the frame was latched by the framework and queued for presentation.
getPresentFence
fun getPresentFence(): SyncFence
Returns a new SyncFence that signals when the transaction has been presented. The caller takes ownership of the fence and is responsible for closing it by calling SyncFence#close
. If a device does not support present fences, an empty fence will be returned.
Return | |
---|---|
SyncFence |
This value cannot be null . |