class Present

Defined at line 242 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/markers.h

Complete execution of all feed-forward operations.

If executing an operation produces an error (e.g., CreateTransform(0)), an [`OnError`] event

is emitted. Operations that produce errors are ignored and the channel is closed.

If the execution is completed successfully, [`OnNextFrameBegin`] emits NO_ERROR along

with other valid fields.

The client may only call [`Present`] when they have a non-zero number of present credits,

which are tracked by the server. The server may increment the number of credits when it

fires the [`OnNextFrameBegin`] event, which informs the client when it receives additional

present credits. Each [`Present`] call uses one present credit and decrements the server

count by one. If the client calls [`Present`] with no present credits, the server will

return a `NO_PRESENTS_REMAINING` error.

The client should assume that prior to receiving any [`OnNextFrameBegin`] events, they have

one present credit.

Every [`Present`] call results in one [`OnNextFrameBegin`] event, and one

[`OnFramePresented`] event, typically in that order.

When the commands flushed by [`Present`] make it to display, an [`OnFramePresented`] event

is fired. This event includes information pertaining to all [`Present`]s that had content

that were part of that frame.

See [`fuchsia.ui.composition/PresentArgs`] documentation above for more detailed information

on what arguments are passed in and their role.

Public Members

static const bool kHasClientToServer
static const bool kHasClientToServerBody
static const bool kHasServerToClient
static const bool kHasServerToClientBody
static const bool kHasNonEmptyUserFacingResponse
static const bool kHasDomainError
static const bool kHasFrameworkError
static const uint64_t kOrdinal