[mutter/wip/carlosg/empty-invalidations: 1/2] clutter/cogl: Store empty clip regions for buffer age



commit 71860d3656c36b0c043b4bf53cffd592da7d624b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 25 16:32:29 2019 +0200

    clutter/cogl: Store empty clip regions for buffer age
    
    As we do not prevent the SwapBuffers call from happening, those also
    do count. Results in clip area calculations to be right for monitors
    that previously did not get invalidated.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/888

 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 3d0af3348..8326c6eb7 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -786,7 +786,7 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
   swap_with_damage = FALSE;
   if (has_buffer_age)
     {
-      if (use_clipped_redraw && !clip_region_empty)
+      if (use_clipped_redraw)
         {
           int age;
 


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