X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fcompositor.c;fp=src%2Fcompositor.c;h=28d563a62cec711f6d3be7f00504a3938c86a0b2;hb=ff0c05c6f919c33af99bfc0078efd39b14f978a3;hp=bb799cf87ba262c32e59784cdd776f69e5752017;hpb=7b0b61877b2d812c8befaa689d326190895edabd;p=src%2Fagl-compositor.git diff --git a/src/compositor.c b/src/compositor.c index bb799cf..28d563a 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1791,6 +1791,7 @@ int wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_da int version = 0; int no_config = 0; int debug = 0; + bool list_debug_scopes = false; char *config_file = NULL; struct weston_log_context *log_ctx = NULL; struct weston_log_subscriber *logger; @@ -1809,6 +1810,7 @@ int wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_da { WESTON_OPTION_STRING, "config", 'c', &config_file }, { WESTON_OPTION_STRING, "modules", 0, &option_modules }, { WESTON_OPTION_STRING, "debug-scopes", 'l', &debug_scopes }, + { WESTON_OPTION_STRING, "list-debug-scopes", 'L', &list_debug_scopes }, }; wl_list_init(&ivi.outputs); @@ -1947,6 +1949,22 @@ int wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_da if (ivi_shell_init(&ivi) < 0) goto error_compositor; + if (list_debug_scopes) { + struct weston_log_scope *nscope = NULL; + + weston_log("Printing available debug scopes:\n"); + + while ((nscope = weston_log_scopes_iterate(ivi.compositor, nscope))) { + weston_log("\tscope name: %s, desc: %s", + weston_log_scope_get_name(nscope), + weston_log_scope_get_description(nscope)); + } + + weston_log("\n"); + + goto error_compositor; + } + add_bindings(ivi.compositor); weston_compositor_flush_heads_changed(ivi.compositor);