[mutter] clutter: Remove clutter_stage_set_sync_delay
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter: Remove clutter_stage_set_sync_delay
- Date: Fri, 5 Feb 2021 17:30:00 +0000 (UTC)
commit 9b44aa77b6d8050d34db08af1bb6d0fdf6401566
Author: Ivan Molodetskikh <yalterz gmail com>
Date: Tue Nov 24 21:43:24 2020 +0300
clutter: Remove clutter_stage_set_sync_delay
The sync_delay field is never accessed.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1707>
clutter/clutter/clutter-stage.c | 34 ----------------------------------
clutter/clutter/clutter-stage.h | 6 ------
src/compositor/compositor.c | 2 --
3 files changed, 42 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 44a112f417..7e8d655fda 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -3028,40 +3028,6 @@ _clutter_stage_remove_touch_drag_actor (ClutterStage *stage,
NULL);
}
-/**
- * clutter_stage_set_sync_delay:
- * @stage: a #ClutterStage
- * @sync_delay: number of milliseconds after frame presentation to wait
- * before painting the next frame. If less than zero, restores the
- * default behavior where redraw is throttled to the refresh rate but
- * not synchronized to it.
- *
- * This function enables an alternate behavior where Clutter draws at
- * a fixed point in time after the frame presentation time (also known
- * as the VBlank time). This is most useful when the application
- * wants to show incoming data with predictable latency. (The primary
- * example of this would be a window system compositor.) By synchronizing
- * to provide new data before Clutter redraws, an external source of
- * updates (in the compositor, an application) can get a reliable latency.
- *
- * The appropriate value of @sync_delay depends on the complexity of
- * drawing the stage's scene graph - in general a value of between 0
- * and 8 ms (up to one-half of a typical 60hz frame rate) is appropriate.
- * using a larger value will reduce latency but risks skipping a frame if
- * drawing the stage takes too long.
- *
- * Since: 1.14
- * Stability: unstable
- */
-void
-clutter_stage_set_sync_delay (ClutterStage *stage,
- gint sync_delay)
-{
- g_return_if_fail (CLUTTER_IS_STAGE (stage));
-
- stage->priv->sync_delay = sync_delay;
-}
-
int64_t
clutter_stage_get_frame_counter (ClutterStage *stage)
{
diff --git a/clutter/clutter/clutter-stage.h b/clutter/clutter/clutter-stage.h
index be588a5f34..441b10ba62 100644
--- a/clutter/clutter/clutter-stage.h
+++ b/clutter/clutter/clutter-stage.h
@@ -195,12 +195,6 @@ void clutter_stage_ensure_viewport (ClutterStage
CLUTTER_EXPORT
gboolean clutter_stage_is_redraw_queued_on_view (ClutterStage *stage,
ClutterStageView *view);
-
-#ifdef CLUTTER_ENABLE_EXPERIMENTAL_API
-CLUTTER_EXPORT
-void clutter_stage_set_sync_delay (ClutterStage *stage,
-#endif
-
CLUTTER_EXPORT
void clutter_stage_schedule_update (ClutterStage *stage);
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index 3be8d2e9ee..613b3f66db 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -548,8 +548,6 @@ meta_compositor_do_manage (MetaCompositor *compositor,
G_CALLBACK (on_presented),
compositor);
- clutter_stage_set_sync_delay (CLUTTER_STAGE (stage), META_SYNC_DELAY);
-
priv->window_group = meta_window_group_new (display);
priv->top_window_group = meta_window_group_new (display);
priv->feedback_group = meta_window_group_new (display);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]