voidpresentation_feedback_t::discarded(boolpost=true)
the content update was not displayed The content update was never displayed to the user.
Definition at line 762 of file wayland-server-protocol-extra.cpp.
std::stringwayland::server::resource_t::get_class()[inherited]
Retrieve the interface name (class) of a resource object.
Returns
Interface name of the resource object.
client_twayland::server::resource_t::get_client()const[inherited]
Get the associated client
Returns
the client that owns the resource.
uint32_twayland::server::resource_t::get_id()const[inherited]
Get the internal ID of the resource
Returns
the internal ID of the resource
unsignedintwayland::server::resource_t::get_version()const[inherited]
Get interface version
Returns
Interface version this resource has been constructed with.
voidwayland::server::resource_t::post_no_memory()const[inherited]
Post 'not enough memory' error to the client
If the compositor has not enough memory to fulfill a certail request of the client, this function can be
called to notify the client of this circumstance.
voidpresentation_feedback_t::presented(uint32_ttv_sec_hi,uint32_ttv_sec_lo,uint32_ttv_nsec,uint32_trefresh,uint32_tseq_hi,uint32_tseq_lo,presentation_feedback_kindconst&flags,boolpost=true)
the content update was displayed
Parameterstv_sec_hi high 32 bits of the seconds part of the presentation timestamp
tv_sec_lo low 32 bits of the seconds part of the presentation timestamp
tv_nsec nanoseconds part of the presentation timestamp
refresh nanoseconds till next refresh
seq_hi high 32 bits of refresh counter
seq_lo low 32 bits of refresh counter
flags combination of 'kind' values
The associated content update was displayed to the user at the indicated time (tv_sec_hi/lo, tv_nsec).
For the interpretation of the timestamp, see presentation.clock_id event.
The timestamp corresponds to the time when the content update turned into light the first time on the
surface's main output. Compositors may approximate this from the framebuffer flip completion events from
the system, and the latency of the physical display path if known.
This event is preceded by all related sync_output events telling which output's refresh cycle the
feedback corresponds to, i.e. the main output for the surface. Compositors are recommended to choose the
output containing the largest part of the wl_surface, or keeping the output they previously chose. Having
a stable presentation output association helps clients predict future output refreshes (vblank).
The 'refresh' argument gives the compositor's prediction of how many nanoseconds after tv_sec, tv_nsec
the very next output refresh may occur. This is to further aid clients in predicting future refreshes,
i.e., estimating the timestamps targeting the next few vblanks. If such prediction cannot usefully be
done, the argument is zero.
If the output does not have a constant refresh rate, explicit video mode switches excluded, then the
refresh argument must be zero.
The 64-bit value combined from seq_hi and seq_lo is the value of the output's vertical retrace counter
when the content update was first scanned out to the display. This value must be compatible with the
definition of MSC in GLX_OML_sync_control specification. Note, that if the display path has a non-zero
latency, the time instant specified by this counter may differ from the timestamp's.
If the output does not have a concept of vertical retrace or a refresh cycle, or the output device is
self-refreshing without a way to query the refresh count, then the arguments seq_hi and seq_lo must be
zero.
Definition at line 757 of file wayland-server-protocol-extra.cpp.
boolwayland::server::resource_t::proxy_has_object()const[inherited]
Check whether this wrapper actually wraps an object.
Returns
true if there is an underlying object, false if this wrapper is empty
voidpresentation_feedback_t::sync_output(output_tconst&output,boolpost=true)
presentation synchronized to this output
Parametersoutput presentation output
As presentation can be synchronized to only one output at a time, this event tells which output it was.
This event is only sent prior to the presented event.
As clients may bind to the same global wl_output multiple times, this event is sent for each bound
instance that matches the synchronized output. If a client has not bound to the right wl_output global at
all, this event is not sent.
Definition at line 752 of file wayland-server-protocol-extra.cpp.