gdk: Fix frame budget diagnostics

Set the frame budget so that CLUTTER_ENABLE_DIAGNOSTIC correctly outputs
timing diagnostics from the ClutterMasterClockGdk.

https://bugzilla.gnome.org/show_bug.cgi?id=755357
This commit is contained in:
Philip Withnall 2015-09-17 16:32:33 +01:00
parent 9e8da64636
commit 3816d5a6bb

View File

@ -462,6 +462,10 @@ clutter_master_clock_gdk_init (ClutterMasterClockGdk *self)
ClutterStageManager *manager;
const GSList *stages, *l;
#ifdef CLUTTER_ENABLE_DEBUG
self->frame_budget = G_USEC_PER_SEC / 60;
#endif
self->clock_to_stage = g_hash_table_new_full (g_direct_hash, g_direct_equal,
g_object_unref, NULL);
self->stage_to_clock = g_hash_table_new_full (g_direct_hash, g_direct_equal,