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



commit 4918893326fe39dba14575a37359b040d074a5a0
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]