clutter/stage: Avoid unnecessary call to add_redraw_clip

We're bailing out of clutter_stage_cogl_add_redraw_clip() early without
doing anything if we're ignoring redraw clips, so no need to call it if
we already know that will be the case.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/547
This commit is contained in:
Jonas Dreßler 2019-04-19 12:48:40 +02:00 committed by Carlos Garnacho
parent f7ecf3b618
commit b86fba2f3c

View File

@ -1303,10 +1303,7 @@ clutter_stage_real_queue_redraw (ClutterActor *actor,
return TRUE;
if (_clutter_stage_window_ignoring_redraw_clips (stage_window))
{
_clutter_stage_window_add_redraw_clip (stage_window, NULL);
return FALSE;
}
return FALSE;
/* Convert the clip volume into stage coordinates and then into an
* axis aligned stage coordinates bounding box...