summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_GL.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-09-19 14:53:01 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-10-20 12:16:08 +0900
commit81bf993c6cb234e2b4550625bbba32a47183d1b5 (patch)
treef35a3b5e0468ea3982d36e87b4b6b82566e68113 /src/lib/evas/Evas_GL.h
parent6848cf40b622ee84ca045a138524e868752ce7f5 (diff)
Evas GL: Add support for fence_sync and similar extensions
This should add support for the following EGL extensions: - EGL_KHR_fence_sync - EGL_KHR_reusable_sync (eglSignalSyncKHR) - EGL_KHR_wait_sync (eglWaitSyncKHR) @feature
Diffstat (limited to 'src/lib/evas/Evas_GL.h')
-rw-r--r--src/lib/evas/Evas_GL.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_GL.h b/src/lib/evas/Evas_GL.h
index d738a5f921..c5e607abe7 100644
--- a/src/lib/evas/Evas_GL.h
+++ b/src/lib/evas/Evas_GL.h
@@ -1838,6 +1838,39 @@ EvasGLImage *img = glapi->evasglCreateImageForContext
1838 EvasGLImage (*evasglCreateImageForContext) (Evas_GL *evas_gl, Evas_GL_Context *ctx, int target, void* buffer, const int* attrib_list) EINA_WARN_UNUSED_RESULT; 1838 EvasGLImage (*evasglCreateImageForContext) (Evas_GL *evas_gl, Evas_GL_Context *ctx, int target, void* buffer, const int* attrib_list) EINA_WARN_UNUSED_RESULT;
1839 1839
1840 1840
1841
1842 /*------- EvasGL / EGL-related functions -------*/
1843 /**
1844 * @name Evas GL Sync object functions
1845 * @since_tizen 2.3
1846 * @{ */
1847 /**
1848 * @anchor evasglCreateSync
1849 * @brief Requires the extension @c EGL_KHR_fence_sync, similar to eglCreateSyncKHR.
1850 */
1851 EvasGLSync (*evasglCreateSync) (Evas_GL *evas_gl, unsigned int type, const int *attrib_list);
1852 /** @anchor evasglDestroySync
1853 * @brief Requires the extension @c EGL_KHR_fence_sync, similar to eglDestroySyncKHR.
1854 */
1855 Eina_Bool (*evasglDestroySync) (Evas_GL *evas_gl, EvasGLSync sync);
1856 /** @anchor evasglClientWaitSync
1857 * @brief Requires the extension @c EGL_KHR_fence_sync, similar to eglClientWaitSyncKHR.
1858 */
1859 int (*evasglClientWaitSync) (Evas_GL *evas_gl, EvasGLSync sync, int flags, EvasGLTime timeout);
1860 /** @anchor evasglSignalSync
1861 * @brief Requires the extension @c EGL_KHR_reusable_sync, similar to eglSignalSyncKHR.
1862 */
1863 Eina_Bool (*evasglSignalSync) (Evas_GL *evas_gl, EvasGLSync sync, unsigned mode);
1864 /** @anchor evasglGetSyncAttrib
1865 * @brief Requires the extension @c EGL_KHR_fence_sync, similar to eglGetSyncAttribKHR.
1866 */
1867 Eina_Bool (*evasglGetSyncAttrib) (Evas_GL *evas_gl, EvasGLSync sync, int attribute, int *value);
1868 /** @anchor evasglWaitSync
1869 * @brief Requires the extension @c EGL_KHR_wait_sync, similar to eglWaitSyncKHR.
1870 */
1871 int (*evasglWaitSync) (Evas_GL *evas_gl, EvasGLSync sync, int flags);
1872 /** @} */
1873
1841 /* future calls will be added down here for expansion */ 1874 /* future calls will be added down here for expansion */
1842}; 1875};
1843 1876