[mutter] clutter/stage: Avoid unnecessary call to add_redraw_clip



commit b86fba2f3c08223614d6025acd98261d42f00eb4
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Fri Apr 19 12:48:40 2019 +0200

    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...


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]