diff options
author | Emil Velikov <[email protected]> | 2017-08-02 00:59:26 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-08-04 23:57:22 +0100 |
commit | 9777c4234b0e78bf79455ff7081068fe3c71a2de (patch) | |
tree | 15fd1d4467ed049ac3e967b5bd1ab4b7eba9bd95 /src/loader/loader_dri3_helper.h | |
parent | c961b679fe16fc98c3d04d611abc287f1bcc07b5 (diff) |
loader: drop the [gs]et_swap_interval callbacks
Having two callbacks to manage a single int seems like an overkill.
Use a cached copy and update that when needed.
Signed-off-by: Emil Velikov <[email protected]>
---
Might want to look if the dimensions dance in .query_surface ...
speaking of which close to nobody implements that ...
Diffstat (limited to 'src/loader/loader_dri3_helper.h')
-rw-r--r-- | src/loader/loader_dri3_helper.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/loader/loader_dri3_helper.h b/src/loader/loader_dri3_helper.h index 90ee2007afb..af42425df7f 100644 --- a/src/loader/loader_dri3_helper.h +++ b/src/loader/loader_dri3_helper.h @@ -97,8 +97,6 @@ struct loader_dri3_extensions { struct loader_dri3_drawable; struct loader_dri3_vtable { - int (*get_swap_interval)(struct loader_dri3_drawable *); - void (*set_swap_interval)(struct loader_dri3_drawable *, int); void (*set_drawable_size)(struct loader_dri3_drawable *, int, int); bool (*in_current_context)(struct loader_dri3_drawable *); __DRIcontext *(*get_dri_context)(struct loader_dri3_drawable *); @@ -156,6 +154,7 @@ struct loader_dri3_drawable { xcb_special_event_t *special_event; bool first_init; + int swap_interval; struct loader_dri3_extensions *ext; const struct loader_dri3_vtable *vtable; |