mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
clutter: Remove CLUTTER_DEFAULT_FPS and default rate
It isn't used, and is not useful. Lets remove it. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2002>
This commit is contained in:
parent
8008f0b7b0
commit
33cdb45c8f
@ -84,8 +84,6 @@ static gboolean clutter_disable_mipmap_text = FALSE;
|
|||||||
static gboolean clutter_enable_accessibility = TRUE;
|
static gboolean clutter_enable_accessibility = TRUE;
|
||||||
static gboolean clutter_sync_to_vblank = TRUE;
|
static gboolean clutter_sync_to_vblank = TRUE;
|
||||||
|
|
||||||
static guint clutter_default_fps = 60;
|
|
||||||
|
|
||||||
static ClutterTextDirection clutter_text_direction = CLUTTER_TEXT_DIRECTION_LTR;
|
static ClutterTextDirection clutter_text_direction = CLUTTER_TEXT_DIRECTION_LTR;
|
||||||
|
|
||||||
/* debug flags */
|
/* debug flags */
|
||||||
@ -586,14 +584,6 @@ init_clutter_debug (ClutterMainContext *clutter_context)
|
|||||||
if (env_string)
|
if (env_string)
|
||||||
clutter_show_fps = TRUE;
|
clutter_show_fps = TRUE;
|
||||||
|
|
||||||
env_string = g_getenv ("CLUTTER_DEFAULT_FPS");
|
|
||||||
if (env_string)
|
|
||||||
{
|
|
||||||
gint default_fps = g_ascii_strtoll (env_string, NULL, 10);
|
|
||||||
|
|
||||||
clutter_default_fps = CLAMP (default_fps, 1, 1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
env_string = g_getenv ("CLUTTER_DISABLE_MIPMAPPED_TEXT");
|
env_string = g_getenv ("CLUTTER_DISABLE_MIPMAPPED_TEXT");
|
||||||
if (env_string)
|
if (env_string)
|
||||||
clutter_disable_mipmap_text = TRUE;
|
clutter_disable_mipmap_text = TRUE;
|
||||||
@ -617,7 +607,6 @@ clutter_context_new (ClutterBackendConstructor backend_constructor,
|
|||||||
|
|
||||||
clutter_context = g_new0 (ClutterMainContext, 1);
|
clutter_context = g_new0 (ClutterMainContext, 1);
|
||||||
init_clutter_debug (clutter_context);
|
init_clutter_debug (clutter_context);
|
||||||
clutter_context->frame_rate = clutter_default_fps;
|
|
||||||
clutter_context->show_fps = clutter_show_fps;
|
clutter_context->show_fps = clutter_show_fps;
|
||||||
clutter_context->is_initialized = FALSE;
|
clutter_context->is_initialized = FALSE;
|
||||||
|
|
||||||
@ -1509,25 +1498,6 @@ _clutter_process_event (ClutterEvent *event)
|
|||||||
context->current_event = g_slist_delete_link (context->current_event, context->current_event);
|
context->current_event = g_slist_delete_link (context->current_event, context->current_event);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* clutter_get_default_frame_rate:
|
|
||||||
*
|
|
||||||
* Retrieves the default frame rate. See clutter_set_default_frame_rate().
|
|
||||||
*
|
|
||||||
* Return value: the default frame rate
|
|
||||||
*
|
|
||||||
* Since: 0.6
|
|
||||||
*/
|
|
||||||
guint
|
|
||||||
clutter_get_default_frame_rate (void)
|
|
||||||
{
|
|
||||||
ClutterMainContext *context;
|
|
||||||
|
|
||||||
context = _clutter_context_get_default ();
|
|
||||||
|
|
||||||
return context->frame_rate;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_get_font_map:
|
* clutter_get_font_map:
|
||||||
*
|
*
|
||||||
|
@ -137,9 +137,6 @@ PangoFontMap * clutter_get_font_map (void);
|
|||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
ClutterTextDirection clutter_get_default_text_direction (void);
|
ClutterTextDirection clutter_get_default_text_direction (void);
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
|
||||||
guint clutter_get_default_frame_rate (void);
|
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
void clutter_add_debug_flags (ClutterDebugFlag debug_flags,
|
void clutter_add_debug_flags (ClutterDebugFlag debug_flags,
|
||||||
ClutterDrawDebugFlag draw_flags,
|
ClutterDrawDebugFlag draw_flags,
|
||||||
|
@ -127,9 +127,6 @@ struct _ClutterMainContext
|
|||||||
* ordered from least recently added to most recently added */
|
* ordered from least recently added to most recently added */
|
||||||
GList *event_filters;
|
GList *event_filters;
|
||||||
|
|
||||||
/* default FPS; this is only used if we cannot sync to vblank */
|
|
||||||
guint frame_rate;
|
|
||||||
|
|
||||||
/* fb bit masks for col<->id mapping in picking */
|
/* fb bit masks for col<->id mapping in picking */
|
||||||
gint fb_r_mask;
|
gint fb_r_mask;
|
||||||
gint fb_g_mask;
|
gint fb_g_mask;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user