libweston: Create the 'timeline' scope
With everything now in place, it is time to create the timeline scope.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
diff --git a/libweston/compositor.c b/libweston/compositor.c
index 2d46546..e371e07 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -7294,6 +7294,12 @@
debug_scene_graph_cb, NULL,
ec);
+ ec->timeline =
+ weston_compositor_add_log_scope(ec->weston_log_ctx, "timeline",
+ "Timeline event points\n",
+ weston_timeline_create_subscription,
+ weston_timeline_destroy_subscription,
+ ec);
return ec;
fail:
@@ -7618,6 +7624,9 @@
weston_compositor_log_scope_destroy(compositor->debug_scene);
compositor->debug_scene = NULL;
+
+ weston_compositor_log_scope_destroy(compositor->timeline);
+ compositor->timeline = NULL;
}
/** Destroys the compositor.