surface: Stop tracking the active update area

It's unused.
This commit is contained in:
Benjamin Otte 2023-04-22 16:10:24 +02:00
parent 27e3ac5fc5
commit 4154f87418
2 changed files with 3 additions and 13 deletions

View 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;

View 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;