[clutter/clutter-1.18] ClutterStage: Don't add empty actors to the stage clip



commit a2551dfa602f938b168fdf23fb4d2fcef4f1d892
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Dec 3 00:32:14 2013 -0500

    ClutterStage: Don't add empty actors to the stage clip
    
    Currently, if an actor with an empty paint volume is queued for redraw, it
    will union in the box +0+0x1x1 to the stage clip bounds - avoid that
    by special casing empty paint volumes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719747

 clutter/clutter-stage.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c
index 0f2e7d9..4902451 100644
--- a/clutter/clutter-stage.c
+++ b/clutter/clutter-stage.c
@@ -1312,6 +1312,9 @@ clutter_stage_real_queue_redraw (ClutterActor *actor,
       return;
     }
 
+  if (redraw_clip->is_empty)
+    return;
+
   _clutter_paint_volume_get_stage_paint_box (redraw_clip,
                                              stage,
                                              &bounding_box);


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