mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
clutter: Drop unused API
clutter_stage_*_get_clip_region_bounds() is no longer used and may be removed. https://gitlab.gnome.org/GNOME/mutter/merge_requests/867
This commit is contained in:
parent
353d7909f6
commit
f4bf48a7d7
@ -249,23 +249,6 @@ _clutter_stage_window_get_redraw_clip (ClutterStageWindow *window)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gboolean
|
||||
_clutter_stage_window_get_redraw_clip_bounds (ClutterStageWindow *window,
|
||||
cairo_rectangle_int_t *stage_clip)
|
||||
{
|
||||
cairo_region_t *redraw_clip;
|
||||
|
||||
g_return_val_if_fail (CLUTTER_IS_STAGE_WINDOW (window), FALSE);
|
||||
|
||||
redraw_clip = _clutter_stage_window_get_redraw_clip (window);
|
||||
if (!redraw_clip)
|
||||
return FALSE;
|
||||
|
||||
cairo_region_get_extents (redraw_clip, stage_clip);
|
||||
cairo_region_destroy (redraw_clip);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
_clutter_stage_window_set_accept_focus (ClutterStageWindow *window,
|
||||
gboolean accept_focus)
|
||||
|
@ -98,8 +98,6 @@ void _clutter_stage_window_add_redraw_clip (ClutterStageWin
|
||||
cairo_rectangle_int_t *stage_clip);
|
||||
gboolean _clutter_stage_window_has_redraw_clips (ClutterStageWindow *window);
|
||||
gboolean _clutter_stage_window_ignoring_redraw_clips (ClutterStageWindow *window);
|
||||
gboolean _clutter_stage_window_get_redraw_clip_bounds (ClutterStageWindow *window,
|
||||
cairo_rectangle_int_t *clip);
|
||||
cairo_region_t * _clutter_stage_window_get_redraw_clip (ClutterStageWindow *window);
|
||||
|
||||
void _clutter_stage_window_set_accept_focus (ClutterStageWindow *window,
|
||||
|
@ -1629,41 +1629,6 @@ clutter_stage_get_redraw_clip (ClutterStage *stage)
|
||||
return cairo_region_create_rectangle (&clip);
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_stage_get_redraw_clip_bounds:
|
||||
* @stage: A #ClutterStage
|
||||
* @clip: (out caller-allocates): Return location for the clip bounds
|
||||
*
|
||||
* Gets the bounds of the current redraw for @stage in stage pixel
|
||||
* coordinates. E.g., if only a single actor has queued a redraw then
|
||||
* Clutter may redraw the stage with a clip so that it doesn't have to
|
||||
* paint every pixel in the stage. This function would then return the
|
||||
* bounds of that clip. An application can use this information to
|
||||
* avoid some extra work if it knows that some regions of the stage
|
||||
* aren't going to be painted. This should only be called while the
|
||||
* stage is being painted. If there is no current redraw clip then
|
||||
* this function will set @clip to the full extents of the stage.
|
||||
*
|
||||
* Since: 1.8
|
||||
*/
|
||||
void
|
||||
clutter_stage_get_redraw_clip_bounds (ClutterStage *stage,
|
||||
cairo_rectangle_int_t *clip)
|
||||
{
|
||||
ClutterStagePrivate *priv;
|
||||
|
||||
g_return_if_fail (CLUTTER_IS_STAGE (stage));
|
||||
g_return_if_fail (clip != NULL);
|
||||
|
||||
priv = stage->priv;
|
||||
|
||||
if (!_clutter_stage_window_get_redraw_clip_bounds (priv->impl, clip))
|
||||
{
|
||||
/* Set clip to the full extents of the stage */
|
||||
_clutter_stage_window_get_geometry (priv->impl, clip);
|
||||
}
|
||||
}
|
||||
|
||||
static ClutterActor *
|
||||
_clutter_stage_do_pick_on_view (ClutterStage *stage,
|
||||
float x,
|
||||
|
@ -206,9 +206,6 @@ guchar * clutter_stage_read_pixels (ClutterStage
|
||||
gint height);
|
||||
|
||||
CLUTTER_EXPORT
|
||||
void clutter_stage_get_redraw_clip_bounds (ClutterStage *stage,
|
||||
cairo_rectangle_int_t *clip);
|
||||
CLUTTER_EXPORT
|
||||
cairo_region_t * clutter_stage_get_redraw_clip (ClutterStage *stage);
|
||||
CLUTTER_EXPORT
|
||||
void clutter_stage_ensure_viewport (ClutterStage *stage);
|
||||
|
Loading…
Reference in New Issue
Block a user