mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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>
This commit is contained in:
parent
f97d2c5f67
commit
9b44aa77b6
@ -3028,40 +3028,6 @@ _clutter_stage_remove_touch_drag_actor (ClutterStage *stage,
|
|||||||
NULL);
|
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
|
int64_t
|
||||||
clutter_stage_get_frame_counter (ClutterStage *stage)
|
clutter_stage_get_frame_counter (ClutterStage *stage)
|
||||||
{
|
{
|
||||||
|
@ -195,12 +195,6 @@ void clutter_stage_ensure_viewport (ClutterStage
|
|||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
gboolean clutter_stage_is_redraw_queued_on_view (ClutterStage *stage,
|
gboolean clutter_stage_is_redraw_queued_on_view (ClutterStage *stage,
|
||||||
ClutterStageView *view);
|
ClutterStageView *view);
|
||||||
|
|
||||||
#ifdef CLUTTER_ENABLE_EXPERIMENTAL_API
|
|
||||||
CLUTTER_EXPORT
|
|
||||||
void clutter_stage_set_sync_delay (ClutterStage *stage,
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
void clutter_stage_schedule_update (ClutterStage *stage);
|
void clutter_stage_schedule_update (ClutterStage *stage);
|
||||||
|
|
||||||
|
@ -548,8 +548,6 @@ meta_compositor_do_manage (MetaCompositor *compositor,
|
|||||||
G_CALLBACK (on_presented),
|
G_CALLBACK (on_presented),
|
||||||
compositor);
|
compositor);
|
||||||
|
|
||||||
clutter_stage_set_sync_delay (CLUTTER_STAGE (stage), META_SYNC_DELAY);
|
|
||||||
|
|
||||||
priv->window_group = meta_window_group_new (display);
|
priv->window_group = meta_window_group_new (display);
|
||||||
priv->top_window_group = meta_window_group_new (display);
|
priv->top_window_group = meta_window_group_new (display);
|
||||||
priv->feedback_group = meta_window_group_new (display);
|
priv->feedback_group = meta_window_group_new (display);
|
||||||
|
Loading…
Reference in New Issue
Block a user