45 #include <private/qgl_p.h> 46 #include <private/qeglcontext_p.h> 47 #include <private/qpixmapdata_gl_p.h> 49 #include <GLES2/gl2.h> 50 #include <GLES2/gl2ext.h> 54 #ifndef EGL_SHARED_IMAGE_NOK 55 #define EGL_SHARED_IMAGE_NOK 0x30DA 59 #ifndef EGL_GL_TEXTURE_2D_KHR 60 #define EGL_GL_TEXTURE_2D_KHR 0x30B1 63 #ifndef EGL_FIXED_WIDTH_NOK 64 #define EGL_FIXED_WIDTH_NOK 0x30DB 65 #define EGL_FIXED_HEIGHT_NOK 0x30DC 68 #ifndef EGL_BITMAP_POINTER_KHR 69 #define EGL_BITMAP_POINTER_KHR 0x30C6 70 #define EGL_BITMAP_PITCH_KHR 0x30C7 73 #ifndef EGL_MAP_PRESERVE_PIXELS_KHR 74 #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 75 #define EGL_LOCK_USAGE_HINT_KHR 0x30C5 76 #define EGL_READ_SURFACE_BIT_KHR 0x0001 77 #define EGL_WRITE_SURFACE_BIT_KHR 0x0002 80 #ifndef EGL_SYNC_FENCE_KHR 81 #define EGL_SYNC_FENCE_KHR 0x30F9 82 #define EGL_SYNC_TYPE_KHR 0x30F7 83 #define EGL_SYNC_STATUS_KHR 0x30F1 84 #define EGL_SYNC_CONDITION_KHR 0x30F8 85 #define EGL_SIGNALED_KHR 0x30F2 86 #define EGL_UNSIGNALED_KHR 0x30F3 87 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0 88 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 89 #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull 90 #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5 91 #define EGL_CONDITION_SATISFIED_KHR 0x30F6 92 #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0) static bool eglSetSurfaceScalingNOK(EGLDisplay dpy, EGLSurface surface, int x, int y, int width, int height)
static EGLBoolean eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value)
static bool hasImageShared
khronos_utime_nanoseconds_t EGLTimeKHR
static bool eglDestroySharedImageNOK(EGLDisplay dpy, EGLNativeSharedImageTypeNOK img)
static bool eglUnlockSurfaceKHR(EGLDisplay display, EGLSurface surface)
void * EGLNativeSharedImageTypeNOK
Q_GUI_EXPORT EGLDisplay display()
static bool eglQueryImageNOK(EGLDisplay dpy, EGLImageKHR image, EGLint prop, EGLint *v)
static bool hasLockSurface
static EGLSyncKHR eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list)
static EGLint eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout)
static void ensureInitialized()
static bool eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync)
static bool hasSurfaceScaling
static bool eglLockSurfaceKHR(EGLDisplay display, EGLSurface surface, const EGLint *attrib_list)
static EGLNativeSharedImageTypeNOK eglCreateSharedImageNOK(EGLDisplay dpy, EGLImageKHR image, EGLint *props)