clutter: Export private function to get debug flags

We're shuffling some code into src/backends, that needs knowing
about these flags to minimize immediate refactors.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
This commit is contained in:
Carlos Garnacho 2021-05-10 19:57:37 +02:00
parent dd9d40aedb
commit 7712b58170
2 changed files with 18 additions and 0 deletions

View File

@ -2192,6 +2192,19 @@ clutter_debug_set_max_render_time_constant (int max_render_time_constant_us)
clutter_max_render_time_constant_us = max_render_time_constant_us; clutter_max_render_time_constant_us = max_render_time_constant_us;
} }
void
clutter_get_debug_flags (ClutterDebugFlag *debug_flags,
ClutterDrawDebugFlag *draw_flags,
ClutterPickDebugFlag *pick_flags)
{
if (debug_flags)
*debug_flags = clutter_debug_flags;
if (draw_flags)
*draw_flags = clutter_paint_debug_flags;
if (pick_flags)
*pick_flags = clutter_pick_debug_flags;
}
void void
_clutter_set_sync_to_vblank (gboolean sync_to_vblank) _clutter_set_sync_to_vblank (gboolean sync_to_vblank)
{ {

View File

@ -102,6 +102,11 @@ CLUTTER_EXPORT
void clutter_stage_repick_device (ClutterStage *stage, void clutter_stage_repick_device (ClutterStage *stage,
ClutterInputDevice *device); ClutterInputDevice *device);
CLUTTER_EXPORT
void clutter_get_debug_flags (ClutterDebugFlag *debug_flags,
ClutterDrawDebugFlag *draw_flags,
ClutterPickDebugFlag *pick_flags);
#undef __CLUTTER_H_INSIDE__ #undef __CLUTTER_H_INSIDE__
#endif /* __CLUTTER_MUTTER_H__ */ #endif /* __CLUTTER_MUTTER_H__ */