[mutter/wip/carlosg/fix-second-monitor-invalidations: 7/7] Revert "clutter/cogl: Store empty clip regions for buffer age"



commit 6bfa61a3a73d9cec284eca57bd953dfe19d2bea5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Oct 30 14:49:17 2019 +0100

    Revert "clutter/cogl: Store empty clip regions for buffer age"
    
    This reverts commit 4918893326fe39dba14575a37359b040d074a5a0.
    
    This commit prevented cogl_stage_cogl_redraw_view() from skipping
    swap buffers entirely if the invalidation region ended up empty.
    This meant we were actually swapping buffers when we didn't need to.
    
    The source of the glitches was fixed more properly, so this just adds
    extra work.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/898

 clutter/clutter/cogl/clutter-stage-cogl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index 78a7d8ffc..fdc22476a 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -800,7 +800,7 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
   swap_with_damage = FALSE;
   if (has_buffer_age)
     {
-      if (use_clipped_redraw)
+      if (use_clipped_redraw && !clip_region_empty)
         {
           int age;
 


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