surface: Stop tracking the active update area
authorBenjamin Otte <otte@redhat.com>
Sat, 22 Apr 2023 14:10:24 +0000 (16:10 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 22 Apr 2023 14:10:24 +0000 (16:10 +0200)
It's unused.

gdk/gdksurface.c
gdk/gdksurfaceprivate.h

index 7120da78dbedcf3c26d44ed10424cdc563b47a38..279bafd6ad4c42ff13b71e1f28db1fbf56729fd2 100644 (file)
@@ -1346,25 +1346,19 @@ gdk_surface_process_updates_internal (GdkSurface *surface)
    */
   if (surface->update_area)
     {
-      g_assert (surface->active_update_area == NULL); /* No reentrancy */
+      cairo_region_t *expose_region;
 
-      surface->active_update_area = surface->update_area;
+      expose_region = surface->update_area;
       surface->update_area = NULL;
 
       if (GDK_SURFACE_IS_MAPPED (surface))
         {
-          cairo_region_t *expose_region;
           gboolean handled;
 
-          expose_region = cairo_region_copy (surface->active_update_area);
-
           g_signal_emit (surface, signals[RENDER], 0, expose_region, &handled);
-
-          cairo_region_destroy (expose_region);
         }
 
-      cairo_region_destroy (surface->active_update_area);
-      surface->active_update_area = NULL;
+      cairo_region_destroy (expose_region);
     }
 
   surface->in_update = FALSE;
index 24562c7848c61985c867b2b3113dc41fb6bfa143..8b210439a5398e12d0ffdd7a4934cbf36b59d088 100644 (file)
@@ -55,10 +55,6 @@ struct _GdkSurface
   cairo_region_t *update_area;
   guint update_freeze_count;
   GdkFrameClockPhase pending_phases;
-  /* This is the update_area that was in effect when the current expose
-     started. It may be smaller than the expose area if we'e painting
-     more than we have to, but it represents the "true" damage. */
-  cairo_region_t *active_update_area;
 
   GdkToplevelState pending_set_flags;
   GdkToplevelState pending_unset_flags;