summaryrefslogtreecommitdiff
path: root/cogl/cogl-types.h
diff options
context:
space:
mode:
authorAdel Gadllah <adel.gadllah@gmail.com>2012-12-14 23:26:30 +0100
committerRobert Bragg <robert@linux.intel.com>2013-01-23 17:58:10 +0000
commit860fb00fdce6eba5ae7eb629b72799633f34e0e9 (patch)
treeef65db14d96dfa5b0d9ddcc6635ab71a6c51cdd7 /cogl/cogl-types.h
parent9fb0cbd45db40b34669fc7397b69c731019b70ac (diff)
downloadcogl-860fb00fdce6eba5ae7eb629b72799633f34e0e9.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 (cherry picked from commit 427b1038051e9b53a071d8c229b363b075bb1dc0)
Diffstat (limited to 'cogl/cogl-types.h')
-rw-r--r--cogl/cogl-types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cogl/cogl-types.h b/cogl/cogl-types.h
index 78640e59..f1f281da 100644
--- a/cogl/cogl-types.h
+++ b/cogl/cogl-types.h
@@ -829,6 +829,9 @@ typedef enum _CoglWinsysFeature
* only needs to be throttled to the framerate */
COGL_WINSYS_FEATURE_SWAP_REGION_SYNCHRONIZED,
+ /* Avaiable if the age of the back buffer can be queried */
+ COGL_WINSYS_FEATURE_BUFFER_AGE,
+
COGL_WINSYS_FEATURE_N_FEATURES
} CoglWinsysFeature;