@ExperimentalApi
class AsyncFrame


A data class storing a Frame and a SyncFenceWrapper that must be waited on before accessing the frame's data.

Summary

Public constructors

AsyncFrame(frame: Frame!, acquireFence: SyncFenceWrapper?)

Creates a new instance.

Public properties

SyncFenceWrapper?

A sync fence which signals when the frame can be used.

Frame!

The underlying Frame.

Public constructors

AsyncFrame

AsyncFrame(frame: Frame!, acquireFence: SyncFenceWrapper?)

Creates a new instance.

Public properties

acquireFence

val acquireFenceSyncFenceWrapper?

A sync fence which signals when the frame can be used.

If this fence is set, the consumer must wait on the fence before reading or writing from the frame's underlying data.

See SyncFence.

The consumer of this AsyncFrame is responsible for closing the fence after it has been waited on.

frame

val frameFrame!

The underlying Frame.