[gtk+/layered-windows: 1/10] gdk: Remove now unused region tags completely
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/layered-windows: 1/10] gdk: Remove now unused region tags completely
- Date: Thu, 1 Dec 2011 16:48:50 +0000 (UTC)
commit 45df163e9dd77670c99e26e49cdbe85c142cbe57
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 1 13:38:04 2011 +0100
gdk: Remove now unused region tags completely
gdk/gdkinternals.h | 1 -
gdk/gdkwindow.c | 14 --------------
2 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index a9a5917..27afe02 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -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 */
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index cc251a9..750f186 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]