summaryrefslogtreecommitdiff
path: root/gtk/gtksnapshotprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-06-19 19:52:52 +0200
committerBenjamin Otte <otte@redhat.com>2018-06-19 19:52:52 +0200
commit0b1f0984f535c8d42d6a0a2107ca3b1c63bde1cb (patch)
tree721e6b3fea41997d73e198a357a30527f3e6af64 /gtk/gtksnapshotprivate.h
parent6918fb2e4e0756b51b475aa455358f1f496441db (diff)
downloadgtk+-0b1f0984f535c8d42d6a0a2107ca3b1c63bde1cb.tar.gz
Revert "Use aligned allocators for GtkSnapshot"
This reverts commit c02bc22cc575470aab870599f2781c3781fb75e6. This code is not necessary. The bug causing this problem ws prsent in the graphene library.
Diffstat (limited to 'gtk/gtksnapshotprivate.h')
-rw-r--r--gtk/gtksnapshotprivate.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/gtk/gtksnapshotprivate.h b/gtk/gtksnapshotprivate.h
index 0493491664..b54fb4b702 100644
--- a/gtk/gtksnapshotprivate.h
+++ b/gtk/gtksnapshotprivate.h
@@ -23,17 +23,6 @@
G_BEGIN_DECLS
typedef struct _GtkSnapshotState GtkSnapshotState;
-typedef struct _GtkSnapshotStateArray GtkSnapshotStateArray;
-
-/* This is a stripped-down copy of GArray tailored specifically
- * for GtkSnapshotState and guaranteed to be aligned to 16 byte
- * boundaries.
- */
-struct _GtkSnapshotStateArray
-{
- GtkSnapshotState *data;
- guint len;
-};
typedef GskRenderNode * (* GtkSnapshotCollectFunc) (GtkSnapshot *snapshot,
GtkSnapshotState *state,
@@ -99,7 +88,7 @@ struct _GtkSnapshotState {
struct _GdkSnapshot {
GObject parent_instance; /* it's really GdkSnapshot, but don't tell anyone! */
- GtkSnapshotStateArray *state_stack;
+ GArray *state_stack;
GPtrArray *nodes;
};