gdk: Remove now unused region tags completely
This commit is contained in:
parent
58b1f24d6d
commit
45df163e9d
@ -227,7 +227,6 @@ struct _GdkWindow
|
||||
|
||||
gint abs_x, abs_y; /* Absolute offset in impl */
|
||||
gint width, height;
|
||||
guint32 clip_tag;
|
||||
|
||||
cairo_region_t *clip_region; /* Clip region (wrt toplevel) in window coords */
|
||||
cairo_region_t *clip_region_with_children; /* Clip region in window coords */
|
||||
|
@ -205,7 +205,6 @@ struct _GdkWindowPaint
|
||||
cairo_surface_t *surface;
|
||||
guint uses_implicit : 1;
|
||||
guint flushed : 1;
|
||||
guint32 region_tag;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
@ -263,14 +262,6 @@ static gpointer parent_class = NULL;
|
||||
|
||||
static const cairo_user_data_key_t gdk_window_cairo_key;
|
||||
|
||||
static guint32
|
||||
new_region_tag (void)
|
||||
{
|
||||
static guint32 tag = 0;
|
||||
|
||||
return ++tag;
|
||||
}
|
||||
|
||||
G_DEFINE_ABSTRACT_TYPE (GdkWindow, gdk_window, G_TYPE_OBJECT)
|
||||
|
||||
GType
|
||||
@ -949,10 +940,6 @@ recompute_visible_regions_internal (GdkWindow *private,
|
||||
if (private->window_type != GDK_WINDOW_ROOT)
|
||||
remove_child_area (private, NULL, FALSE, private->clip_region_with_children);
|
||||
|
||||
if (clip_region_changed ||
|
||||
!cairo_region_equal (private->clip_region_with_children, old_clip_region_with_children))
|
||||
private->clip_tag = new_region_tag ();
|
||||
|
||||
if (old_clip_region_with_children)
|
||||
cairo_region_destroy (old_clip_region_with_children);
|
||||
}
|
||||
@ -2859,7 +2846,6 @@ gdk_window_begin_paint_region (GdkWindow *window,
|
||||
|
||||
paint = g_new (GdkWindowPaint, 1);
|
||||
paint->region = cairo_region_copy (region);
|
||||
paint->region_tag = new_region_tag ();
|
||||
|
||||
cairo_region_intersect (paint->region, window->clip_region_with_children);
|
||||
cairo_region_get_extents (paint->region, &clip_box);
|
||||
|
Loading…
Reference in New Issue
Block a user