[mutter/gbsneto/pick-culling: 2/3] clutter/actor: Invalidate last paint volume on absolute geometry changes




commit 85217d0ddf8b92f7b3140bbc2a69ecefe6c0a8c6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Oct 22 21:36:53 2020 -0300

    clutter/actor: Invalidate last paint volume on absolute geometry changes
    
    The last paint volume is in eye coordinates. When an actor changes
    any transform, all children potentially change their position in
    eye coordinates, and consequently, the last paint volume becomes
    invalid.
    
    Mark the last paint volume as invalid when the absolute geometry
    of an actor changes.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1520

 clutter/clutter/clutter-actor.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index 10a7336905..ad181b70d2 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -2440,6 +2440,7 @@ clutter_actor_notify_if_geometry_changed (ClutterActor          *self,
 static void
 absolute_geometry_changed (ClutterActor *actor)
 {
+  actor->priv->last_paint_volume_valid = FALSE;
   queue_update_stage_views (actor);
 }
 


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