diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-09-02 10:08:04 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-09-02 10:08:04 +0100 |
commit | 939b836bfa95df759aca96936bb9a6d89d3130b8 (patch) | |
tree | 48fea662e6672f40aa6215ec48522a4ca41baaee /src/cairo-xlib-surface-private.h | |
parent | 38f779afcb84d48a1a146eec11a6db5c484d3578 (diff) | |
download | cairo-939b836bfa95df759aca96936bb9a6d89d3130b8.tar.gz |
[xlib] Use an embedded doubly-linked list for the close display hooks.
Kill the allocation and linear search of the close display list on remove,
by embedding a list node into the parent structure.
Original patch by Karl Tomlinson <karlt+@karlt.net>, Mozilla Corporation.
https://bugzilla.mozilla.org/show_bug.cgi?id=453199#c5
Diffstat (limited to 'src/cairo-xlib-surface-private.h')
-rw-r--r-- | src/cairo-xlib-surface-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-xlib-surface-private.h b/src/cairo-xlib-surface-private.h index d5df19ca2..a16e8e4ee 100644 --- a/src/cairo-xlib-surface-private.h +++ b/src/cairo-xlib-surface-private.h @@ -46,6 +46,7 @@ struct _cairo_xlib_surface { Display *dpy; cairo_xlib_screen_info_t *screen_info; + cairo_xlib_hook_t close_display_hook; GC gc; Drawable drawable; |