From b86fba2f3c08223614d6025acd98261d42f00eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 19 Apr 2019 12:48:40 +0200 Subject: [PATCH] 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 --- clutter/clutter/clutter-stage.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index 1eea5b305..b060cc509 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -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...