@ExperimentalApi
public final class AsyncFrame


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

Summary

Public fields

final @Nullable SyncFenceWrapper

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

final Frame

The underlying Frame.

Public constructors

AsyncFrame(Frame frame, @Nullable SyncFenceWrapper acquireFence)

Creates a new instance.

Public fields

acquireFence

public final @Nullable SyncFenceWrapper acquireFence

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

public final Frame frame

The underlying Frame.

Public constructors

AsyncFrame

public AsyncFrame(Frame frame, @Nullable SyncFenceWrapper acquireFence)

Creates a new instance.