[mutter] clutter/cogl/stage: Simplify swap_event boolean logic



commit 860906246e56c5ab817760329cbfa0d65e944cf9
Author: Jonas Ådahl <jadahl gmail com>
Date:   Wed Feb 5 15:40:06 2020 +0100

    clutter/cogl/stage: Simplify swap_event boolean logic
    
    We'll expect a swap event if any of the view paints resulted in a swap;
    make the logic dealing with this clearer by making changing the less
    vilible '|| swap_event' postfix with a up front '|=' operator.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/1042

 clutter/clutter/cogl/clutter-stage-cogl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index 40258995d..5beced17c 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -1090,8 +1090,7 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
     {
       ClutterStageView *view = l->data;
 
-      swap_event =
-        clutter_stage_cogl_redraw_view (stage_window, view) || swap_event;
+      swap_event |= clutter_stage_cogl_redraw_view (stage_window, view);
     }
 
   _clutter_stage_emit_after_paint (stage_cogl->wrapper);


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