template <>
class AsyncEventHandler
Defined at line 1933 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/natural_messaging.h
Public Methods
void AsyncEventHandler ()
Defined at line 1937 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/natural_messaging.h
void OnNextFrameBegin (::fidl::Event< ::fuchsia_ui_composition::Flatland::OnNextFrameBegin> & )
This event is fired when clients should expect minimal resource contention. Clients may use
the timing of this event to begin their rendering work, using the information returned to
inform their scheduling decisions.
Importantly, OnNextFrameBegin is only fired when the client has one or more present credits,
including what is returned in this event. It is therefore safe to present once every time
this event fires.
- response `values` the table of information a client needs to produce its next frame. See
[`OnNextFrameBeginValues`] for more information.
void OnFramePresented (::fidl::Event< ::fuchsia_ui_composition::Flatland::OnFramePresented> & )
This event is fired whenever a set of one or more [`Present`]s are presented simultaneously,
and are therefore no longer in flight.
This event signifies that the commands enqueued before the [`Present`] have taken effect in
the scene graph, and are globally visible.
Clients do NOT have to implement a handler for this event for basic frame scheduling, unless
they explicitly want feedback on prior frame presentation. All future frame information is
given in the [`OnNextFrameBegin`] event.
TODO(https://fxbug.dev/42141795): remove `num_presents_allowed` from this event.
void OnError (::fidl::Event< ::fuchsia_ui_composition::Flatland::OnError> & )
If an error occurs after a [`Present`], an `OnError` event will fire with associated
information.
FlatlandErrors will close the connection with the client.
- response `error` the error a client may receive after performing some invalid operations.