util: Drop duplicated Clutter debug flags helpers
Clutter exposes those functions already. So there is literally 0 point in duplicating them. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4131>
This commit is contained in:
@ -598,6 +598,12 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clutter_get_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
|
||||||
clutter_get_debug_flags (ClutterDebugFlag *debug_flags,
|
clutter_get_debug_flags (ClutterDebugFlag *debug_flags,
|
||||||
ClutterDrawDebugFlag *draw_flags,
|
ClutterDrawDebugFlag *draw_flags,
|
||||||
|
@ -541,7 +541,7 @@ meta_stage_impl_redraw_view_primary (MetaStageImpl *stage_impl,
|
|||||||
buffer_age);
|
buffer_age);
|
||||||
}
|
}
|
||||||
|
|
||||||
meta_get_clutter_debug_flags (NULL, &paint_debug_flags, NULL);
|
clutter_get_debug_flags (NULL, &paint_debug_flags, NULL);
|
||||||
|
|
||||||
use_clipped_redraw =
|
use_clipped_redraw =
|
||||||
should_use_clipped_redraw (is_full_redraw,
|
should_use_clipped_redraw (is_full_redraw,
|
||||||
|
@ -531,37 +531,6 @@ meta_generate_random_id (GRand *rand,
|
|||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
meta_add_clutter_debug_flags (ClutterDebugFlag debug_flags,
|
|
||||||
ClutterDrawDebugFlag draw_flags,
|
|
||||||
ClutterPickDebugFlag pick_flags)
|
|
||||||
{
|
|
||||||
clutter_add_debug_flags (debug_flags, draw_flags, pick_flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
meta_remove_clutter_debug_flags (ClutterDebugFlag debug_flags,
|
|
||||||
ClutterDrawDebugFlag draw_flags,
|
|
||||||
ClutterPickDebugFlag 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
|
|
||||||
meta_get_clutter_debug_flags (ClutterDebugFlag *debug_flags,
|
|
||||||
ClutterDrawDebugFlag *draw_flags,
|
|
||||||
ClutterPickDebugFlag *pick_flags)
|
|
||||||
{
|
|
||||||
clutter_get_debug_flags (debug_flags, draw_flags, pick_flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_add_debug_paint_flag (MetaDebugPaintFlag flag)
|
meta_add_debug_paint_flag (MetaDebugPaintFlag flag)
|
||||||
{
|
{
|
||||||
|
@ -93,21 +93,6 @@ char* meta_external_binding_name_for_action (guint keybinding_action);
|
|||||||
META_EXPORT
|
META_EXPORT
|
||||||
char* meta_g_utf8_strndup (const gchar *src, gsize n);
|
char* meta_g_utf8_strndup (const gchar *src, gsize n);
|
||||||
|
|
||||||
META_EXPORT
|
|
||||||
void meta_add_clutter_debug_flags (ClutterDebugFlag debug_flags,
|
|
||||||
ClutterDrawDebugFlag draw_flags,
|
|
||||||
ClutterPickDebugFlag pick_flags);
|
|
||||||
|
|
||||||
META_EXPORT
|
|
||||||
void meta_remove_clutter_debug_flags (ClutterDebugFlag debug_flags,
|
|
||||||
ClutterDrawDebugFlag draw_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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user