diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2019-08-29 20:34:41 +0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-09-02 17:36:00 +0000 |
commit | a957c2f0c217a4cb938dad2df88b649b7e9bb79d (patch) | |
tree | d9abe83e0e0fcdea6842ded70371f00033d37f3c | |
parent | 908203c73586552993636bbd9c5c78931c81b9ce (diff) | |
download | mutter-a957c2f0c217a4cb938dad2df88b649b7e9bb79d.tar.gz |
wayland: Trace wl_surface.commit
https://gitlab.gnome.org/GNOME/mutter/merge_requests/765
-rw-r--r-- | src/wayland/meta-wayland-surface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 12a607b47..bb7c22bac 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -30,6 +30,7 @@ #include "backends/meta-cursor-tracker-private.h" #include "clutter/clutter.h" #include "clutter/wayland/clutter-wayland-compositor.h" +#include "cogl/cogl-trace.h" #include "cogl/cogl-wayland-server.h" #include "compositor/meta-surface-actor-wayland.h" #include "compositor/meta-surface-actor.h" @@ -870,6 +871,9 @@ cleanup: static void meta_wayland_surface_commit (MetaWaylandSurface *surface) { + COGL_TRACE_BEGIN_SCOPED (MetaWaylandSurfaceCommit, + "WaylandSurface (commit"); + if (surface->pending->buffer && !meta_wayland_buffer_is_realized (surface->pending->buffer)) meta_wayland_buffer_realize (surface->pending->buffer); |