compositor: Trace pre/post paint functions
https://gitlab.gnome.org/GNOME/mutter/merge_requests/757
This commit is contained in:
parent
ab1107973b
commit
a14fd1b955
@ -61,6 +61,7 @@
|
|||||||
#include "backends/x11/meta-event-x11.h"
|
#include "backends/x11/meta-event-x11.h"
|
||||||
#include "backends/x11/meta-stage-x11.h"
|
#include "backends/x11/meta-stage-x11.h"
|
||||||
#include "clutter/clutter-mutter.h"
|
#include "clutter/clutter-mutter.h"
|
||||||
|
#include "cogl/cogl-trace.h"
|
||||||
#include "compositor/meta-window-actor-x11.h"
|
#include "compositor/meta-window-actor-x11.h"
|
||||||
#include "compositor/meta-window-actor-wayland.h"
|
#include "compositor/meta-window-actor-wayland.h"
|
||||||
#include "compositor/meta-window-actor-private.h"
|
#include "compositor/meta-window-actor-private.h"
|
||||||
@ -1080,6 +1081,8 @@ meta_compositor_real_pre_paint (MetaCompositor *compositor)
|
|||||||
static void
|
static void
|
||||||
meta_compositor_pre_paint (MetaCompositor *compositor)
|
meta_compositor_pre_paint (MetaCompositor *compositor)
|
||||||
{
|
{
|
||||||
|
COGL_TRACE_BEGIN_SCOPED (MetaCompositorPrePaint,
|
||||||
|
"Compositor (pre-paint)");
|
||||||
META_COMPOSITOR_GET_CLASS (compositor)->pre_paint (compositor);
|
META_COMPOSITOR_GET_CLASS (compositor)->pre_paint (compositor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1127,6 +1130,8 @@ meta_compositor_real_post_paint (MetaCompositor *compositor)
|
|||||||
static void
|
static void
|
||||||
meta_compositor_post_paint (MetaCompositor *compositor)
|
meta_compositor_post_paint (MetaCompositor *compositor)
|
||||||
{
|
{
|
||||||
|
COGL_TRACE_BEGIN_SCOPED (MetaCompositorPostPaint,
|
||||||
|
"Compositor (post-paint)");
|
||||||
META_COMPOSITOR_GET_CLASS (compositor)->post_paint (compositor);
|
META_COMPOSITOR_GET_CLASS (compositor)->post_paint (compositor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user