wayland: Trace wl_surface.commit

https://gitlab.gnome.org/GNOME/mutter/merge_requests/765
This commit is contained in:
Jonas Ådahl 2019-08-29 20:34:41 +03:00 committed by Georges Basile Stavracas Neto
parent 908203c735
commit a957c2f0c2

View File

@ -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);