mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
surface: Stop tracking the active update area
It's unused.
This commit is contained in:
parent
27e3ac5fc5
commit
4154f87418
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user