template <>

class NaturalWeakEventSender

Defined at line 1577 of file fidling/gen/sdk/fidl/fuchsia.gpu.magma/fuchsia.gpu.magma/cpp/fidl/fuchsia.gpu.magma/cpp/natural_messaging.h

Public Methods

::fit::result< ::fidl::OneWayError> OnNotifyMessagesConsumed (const ::fuchsia_gpu_magma::PrimaryOnNotifyMessagesConsumedRequest & payload)

Indicates the given number of messages were consumed by the server.

The caller should limit the number of inflight messages:

(messages sent - server consumed)

<

= MaxMessages (see QueryId::MAXIMUM_INFLIGHT_PARAMS).

Messages are actually consumed by the server as quickly as possible, however this event

is sent by the server only when the consumed count reaches half the maximum.

::fit::result< ::fidl::OneWayError> OnNotifyMemoryImported (const ::fuchsia_gpu_magma::PrimaryOnNotifyMemoryImportedRequest & payload)

Indicates the given number of buffer memory bytes were imported by the server.

The caller should limit the amount of memory from inflight ImportBuffer messages:

(bytes sent - server imported)

<

= MaxBytes (see QueryId::MAXIMUM_INFLIGHT_PARAMS).

This is a soft limit designed to prevent excessive memory consumption, but for large

messages the client may exceed the limit.

Memory is imported by the server as quickly as possible, however this event

is sent only when the consumed byte count reaches half the maximum; therefore,

if the client's count of inflight bytes is less than max/2, the client should send the

ImportBuffer message regardless of its size.