]> Pileus Git - ~andy/gtk/commitdiff
gdk: Remove now unused region tags completely
authorAlexander Larsson <alexl@redhat.com>
Thu, 1 Dec 2011 12:38:04 +0000 (13:38 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 1 Dec 2011 12:38:04 +0000 (13:38 +0100)
gdk/gdkinternals.h
gdk/gdkwindow.c

index a9a59179625032555dcc0db1676aaed7156a5eab..27afe026ac402fa349ab1cb2b770e791b37b8512 100644 (file)
@@ -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 */
index cc251a9e1adef5ec16c9d1e75252aa2ba2d0d313..750f186df8cc7c940a901e360a1e14f0d8a94870 100644 (file)
@@ -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);