[mutter] clutter: Remove CLUTTER_DEFAULT_FPS and default rate



commit 33cdb45c8fdd9aa6f6da334a139a4a0fd1afe361
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu Sep 16 11:50:36 2021 +0200

    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>

 clutter/clutter/clutter-main.c    | 30 ------------------------------
 clutter/clutter/clutter-main.h    |  3 ---
 clutter/clutter/clutter-private.h |  3 ---
 3 files changed, 36 deletions(-)
---
diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c
index a9279d0e91..8d3769e3ae 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -84,8 +84,6 @@ static gboolean clutter_disable_mipmap_text  = FALSE;
 static gboolean clutter_enable_accessibility = TRUE;
 static gboolean clutter_sync_to_vblank       = TRUE;
 
-static guint clutter_default_fps             = 60;
-
 static ClutterTextDirection clutter_text_direction = CLUTTER_TEXT_DIRECTION_LTR;
 
 /* debug flags */
@@ -586,14 +584,6 @@ init_clutter_debug (ClutterMainContext *clutter_context)
   if (env_string)
     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");
   if (env_string)
     clutter_disable_mipmap_text = TRUE;
@@ -617,7 +607,6 @@ clutter_context_new (ClutterBackendConstructor   backend_constructor,
 
   clutter_context = g_new0 (ClutterMainContext, 1);
   init_clutter_debug (clutter_context);
-  clutter_context->frame_rate = clutter_default_fps;
   clutter_context->show_fps = clutter_show_fps;
   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);
 }
 
-/**
- * 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:
  *
diff --git a/clutter/clutter/clutter-main.h b/clutter/clutter/clutter-main.h
index b7f8789ab1..a2d8400f47 100644
--- a/clutter/clutter/clutter-main.h
+++ b/clutter/clutter/clutter-main.h
@@ -137,9 +137,6 @@ PangoFontMap *          clutter_get_font_map                    (void);
 CLUTTER_EXPORT
 ClutterTextDirection    clutter_get_default_text_direction      (void);
 
-CLUTTER_EXPORT
-guint                   clutter_get_default_frame_rate          (void);
-
 CLUTTER_EXPORT
 void                    clutter_add_debug_flags                 (ClutterDebugFlag     debug_flags,
                                                                  ClutterDrawDebugFlag draw_flags,
diff --git a/clutter/clutter/clutter-private.h b/clutter/clutter/clutter-private.h
index 15dba0bb5f..db3c3781d7 100644
--- a/clutter/clutter/clutter-private.h
+++ b/clutter/clutter/clutter-private.h
@@ -127,9 +127,6 @@ struct _ClutterMainContext
    * ordered from least recently added to most recently added */
   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 */
   gint fb_r_mask;
   gint fb_g_mask;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]