diff options
author | Adel Gadllah <adel.gadllah@gmail.com> | 2012-12-14 23:26:30 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2013-01-23 17:56:12 +0000 |
commit | 427b1038051e9b53a071d8c229b363b075bb1dc0 (patch) | |
tree | f5f7f1c3d44e026900280224cf0f087a1b203ce4 /cogl/cogl-glx-renderer-private.h | |
parent | 6ccf9b5d0da6e85142112917fd66608ba1c8e508 (diff) | |
download | cogl-427b1038051e9b53a071d8c229b363b075bb1dc0.tar.gz |
cogl-onscreen: Add buffer_age support
Add a new BUFFER_AGE winsys feature and a get_buffer_age method to
cogl-onscreen that allows to query the value.
https://bugzilla.gnome.org/show_bug.cgi?id=669122
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Note: When landing the patch I made some gtk-doc updates and changed
_get_buffer_age to return an age of 0 always if the age feature isn't
support instead of using _COGL_RETURN_VAL_IF_FAIL. -- Robert Bragg
Diffstat (limited to 'cogl/cogl-glx-renderer-private.h')
-rw-r--r-- | cogl/cogl-glx-renderer-private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cogl/cogl-glx-renderer-private.h b/cogl/cogl-glx-renderer-private.h index 1be4d987..20ca5433 100644 --- a/cogl/cogl-glx-renderer-private.h +++ b/cogl/cogl-glx-renderer-private.h @@ -67,6 +67,10 @@ typedef struct _CoglGLXRenderer void * (* glXGetProcAddress) (const GLubyte *procName); + int + (* glXQueryDrawable) (Display *dpy, GLXDrawable drawable, + int attribute, unsigned int *value); + /* Function pointers for GLX specific extensions */ #define COGL_WINSYS_FEATURE_BEGIN(a, b, c, d, e, f) |