SurfaceControl.TransactionStats
public
static
final
class
SurfaceControl.TransactionStats
extends Object
java.lang.Object | |
↳ | android.view.SurfaceControl.TransactionStats |
Transaction stats given to the listener registered in
SurfaceControl.Transaction#addTransactionCompletedListener
Summary
Public methods | |
---|---|
long
|
getLatchTimeNanos()
Returns the timestamp (in CLOCK_MONOTONIC) of when the frame was latched by the framework and queued for presentation. |
SyncFence
|
getPresentFence()
Returns a new SyncFence that signals when the transaction has been presented. |
Inherited methods | |
---|---|
Public methods
getLatchTimeNanos
public long getLatchTimeNanos ()
Returns the timestamp (in CLOCK_MONOTONIC) of when the frame was latched by the framework and queued for presentation.
Returns | |
---|---|
long |
getPresentFence
public SyncFence getPresentFence ()
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.
Returns | |
---|---|
SyncFence |
This value cannot be null . |