From: Benjamin Otte Date: Sat, 22 Apr 2023 14:10:24 +0000 (+0200) Subject: surface: Stop tracking the active update area X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~382^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4154f874187e48c8af26ad4889238c01e5ac147a;p=gtk4.git surface: Stop tracking the active update area It's unused. --- diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 7120da78db..279bafd6ad 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -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; diff --git a/gdk/gdksurfaceprivate.h b/gdk/gdksurfaceprivate.h index 24562c7848..8b210439a5 100644 --- a/gdk/gdksurfaceprivate.h +++ b/gdk/gdksurfaceprivate.h @@ -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;