Lines Matching refs:egl
48 namespace egl namespace
67 void checkEGLPlatformSupport (const Library& egl) in checkEGLPlatformSupport() argument
69 const vector<std::string> extensions = eglu::getClientExtensions(egl); in checkEGLPlatformSupport()
74 void checkEGL15Support (const Library& egl, EGLDisplay display) in checkEGL15Support() argument
79 std::vector<std::string> tokens = de::splitString(egl.queryString(display, EGL_VERSION), ' '); in checkEGL15Support()
89 const Library& egl = nativeDisplay.getLibrary(); in createWindowSurface() local
96 surface = egl.createWindowSurface(display, config, window.getLegacyNative(), DE_NULL); in createWindowSurface()
97 EGLU_CHECK_MSG(egl, "eglCreateWindowSurface() failed"); in createWindowSurface()
102 checkEGLPlatformSupport(egl); in createWindowSurface()
104 surface = egl.createPlatformWindowSurfaceEXT(display, config, nativeWindow, DE_NULL); in createWindowSurface()
105 EGLU_CHECK_MSG(egl, "eglCreatePlatformWindowSurfaceEXT() failed"); in createWindowSurface()
110 checkEGL15Support(egl, display); in createWindowSurface()
111 surface = egl.createPlatformWindowSurface(display, config, window.getPlatformNative(), DE_NULL); in createWindowSurface()
112 EGLU_CHECK_MSG(egl, "eglCreatePlatformWindowSurface() failed"); in createWindowSurface()
121 const Library& egl = nativeDisplay.getLibrary(); in createPixmapSurface() local
127 surface = egl.createPixmapSurface(display, config, pixmap.getLegacyNative(), DE_NULL); in createPixmapSurface()
128 EGLU_CHECK_MSG(egl, "eglCreatePixmapSurface() failed"); in createPixmapSurface()
131 checkEGLPlatformSupport(egl); in createPixmapSurface()
132 …surface = egl.createPlatformPixmapSurfaceEXT(display, config, pixmap.getPlatformExtension(), DE_NU… in createPixmapSurface()
133 EGLU_CHECK_MSG(egl, "eglCreatePlatformPixmapSurfaceEXT() failed"); in createPixmapSurface()
136 surface = egl.createPlatformPixmapSurface(display, config, pixmap.getPlatformNative(), DE_NULL); in createPixmapSurface()
137 EGLU_CHECK_MSG(egl, "eglCreatePlatformPixmapSurface() failed"); in createPixmapSurface()
155 const Library& egl = m_eglTestCtx.getLibrary(); in executeForConfig() local
157 EGLint id = eglu::getConfigID(egl, display, config); in executeForConfig()
185 EGLU_CHECK_MSG(egl, "init"); in executeForConfig()
191 …eglu::UniqueSurface surface (egl, display, createWindowSurface(display, config, m_eglTestCtx… in executeForConfig()
196 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_WIDTH, &windowWidth)); in executeForConfig()
197 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_HEIGHT, &windowHeight)); in executeForConfig()
224 const Library& egl = m_eglTestCtx.getLibrary(); in executeForConfig() local
226 EGLint id = eglu::getConfigID(egl, display, config); in executeForConfig()
254 EGLU_CHECK_MSG(egl, "init"); in executeForConfig()
260 …eglu::UniqueSurface surface (egl, display, createPixmapSurface(display, config, m_eglTestCtx… in executeForConfig()
264 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_WIDTH, &pixmapWidth)); in executeForConfig()
265 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_HEIGHT, &pixmapHeight)); in executeForConfig()
291 const Library& egl = m_eglTestCtx.getLibrary(); in executeForConfig() local
293 EGLint id = eglu::getConfigID(egl, display, config); in executeForConfig()
300 EGLU_CHECK_MSG(egl, "init"); in executeForConfig()
303 width = deMin32(width, eglu::getConfigAttribInt(egl, display, config, EGL_MAX_PBUFFER_WIDTH)); in executeForConfig()
304 height = deMin32(height, eglu::getConfigAttribInt(egl, display, config, EGL_MAX_PBUFFER_HEIGHT)); in executeForConfig()
323 EGLSurface surface = egl.createPbufferSurface(display, config, attribs); in executeForConfig()
324 EGLU_CHECK_MSG(egl, "Failed to create pbuffer"); in executeForConfig()
326 egl.destroySurface(display, surface); in executeForConfig()