mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 01:54:10 +00:00
wayland/buffer: Trace instrument buffer-attach
While browsing sysprof profiling reports, I saw surface-commit taking significant times sometimes; trace attach too, to see whether such things are due to e.g. texture uploads. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1616>
This commit is contained in:
parent
d43c8cd842
commit
c56433d6ee
@ -530,6 +530,8 @@ meta_wayland_buffer_attach (MetaWaylandBuffer *buffer,
|
|||||||
{
|
{
|
||||||
g_return_val_if_fail (buffer->resource, FALSE);
|
g_return_val_if_fail (buffer->resource, FALSE);
|
||||||
|
|
||||||
|
COGL_TRACE_BEGIN_SCOPED (MetaWaylandBufferAttach, "WaylandBuffer (attach)");
|
||||||
|
|
||||||
if (!meta_wayland_buffer_is_realized (buffer))
|
if (!meta_wayland_buffer_is_realized (buffer))
|
||||||
{
|
{
|
||||||
/* The buffer should have been realized at surface commit time */
|
/* The buffer should have been realized at surface commit time */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user