util: Export and annotate meta_get_clutter_debug_flags

This will be useful for getting the initial state when adding switches
for these flags to looking glass.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3968
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2028>
This commit is contained in:
Sebastian Keller 2021-09-29 20:02:04 +02:00 committed by Marge Bot
parent d4e8cfa17a
commit c2bb80a26d
3 changed files with 11 additions and 4 deletions

View File

@ -54,8 +54,4 @@ void meta_init_debug_utils (void);
(ycoord) >= (rect).y && \ (ycoord) >= (rect).y && \
(ycoord) < ((rect).y + (rect).height)) (ycoord) < ((rect).y + (rect).height))
void meta_get_clutter_debug_flags (ClutterDebugFlag *debug_flags,
ClutterDrawDebugFlag *draw_flags,
ClutterPickDebugFlag *pick_flags);
#endif #endif

View File

@ -772,6 +772,12 @@ meta_remove_clutter_debug_flags (ClutterDebugFlag debug_flags,
clutter_remove_debug_flags (debug_flags, draw_flags, pick_flags); clutter_remove_debug_flags (debug_flags, draw_flags, pick_flags);
} }
/**
* meta_get_clutter_debug_flags:
* @debug_flags: (out) (optional): return location for debug flags
* @draw_flags: (out) (optional): return location for draw debug flags
* @pick_flags: (out) (optional): return location for pick debug flags
*/
void void
meta_get_clutter_debug_flags (ClutterDebugFlag *debug_flags, meta_get_clutter_debug_flags (ClutterDebugFlag *debug_flags,
ClutterDrawDebugFlag *draw_flags, ClutterDrawDebugFlag *draw_flags,

View File

@ -226,6 +226,11 @@ void meta_remove_clutter_debug_flags (ClutterDebugFlag debug_flags,
ClutterDrawDebugFlag draw_flags, ClutterDrawDebugFlag draw_flags,
ClutterPickDebugFlag pick_flags); ClutterPickDebugFlag pick_flags);
META_EXPORT
void meta_get_clutter_debug_flags (ClutterDebugFlag *debug_flags,
ClutterDrawDebugFlag *draw_flags,
ClutterPickDebugFlag *pick_flags);
META_EXPORT META_EXPORT
void meta_add_debug_paint_flag (MetaDebugPaintFlag flag); void meta_add_debug_paint_flag (MetaDebugPaintFlag flag);