diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-10-17 20:41:57 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-10-18 19:21:01 +0100 |
commit | 379b9b79fa77be1bf9b5e0581b2363e80b0a8c88 (patch) | |
tree | da8112d4a078100b0bccd2466a0b4ecccdcded02 /src/cairo-xlib-private.h | |
parent | 5e09653e5dca60902423938737195e38ccde1b95 (diff) | |
download | cairo-379b9b79fa77be1bf9b5e0581b2363e80b0a8c88.tar.gz |
[cairo-xlib] Move the buggy_repeat discovery to the display_t.
The VendorString parsing (to detect broken Xserver versions) was being
performed for each surface creation, but as it is a display invariant
we can save a small amount of work by storing the result on the
cairo_xlib_display_t.
Diffstat (limited to 'src/cairo-xlib-private.h')
-rw-r--r-- | src/cairo-xlib-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h index ce2e5ae49..05c7d0e4c 100644 --- a/src/cairo-xlib-private.h +++ b/src/cairo-xlib-private.h @@ -70,6 +70,7 @@ struct _cairo_xlib_display { cairo_freelist_t hook_freelist; cairo_xlib_hook_t *close_display_hooks; + unsigned int buggy_repeat :1; unsigned int closed :1; }; |