Lines Matching refs:egl
61 namespace egl namespace
129 EGLConfig getEGLConfig (const Library& egl, EGLDisplay eglDisplay, bool preserveBuffer);
275 virtual EGLConfig getConfig (const Library& egl, EGLDisplay eglDisplay);
276 virtual void checkExtension (const Library& egl, EGLDisplay eglDisplay);
312 EGLConfig SwapBuffersWithDamageTest::getConfig (const Library& egl, EGLDisplay eglDisplay) in getConfig() argument
314 return getEGLConfig(egl, eglDisplay, false); in getConfig()
317 void SwapBuffersWithDamageTest::checkExtension (const Library& egl, EGLDisplay eglDisplay) in checkExtension() argument
319 if (!eglu::hasExtension(egl, eglDisplay, "EGL_KHR_swap_buffers_with_damage")) in checkExtension()
325 const Library& egl = m_eglTestCtx.getLibrary(); in init() local
328 m_eglConfig = getConfig(egl, m_eglDisplay); in init()
330 checkExtension(egl, m_eglDisplay); in init()
341 const Library& egl = m_eglTestCtx.getLibrary(); in deinit() local
348 egl.makeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in deinit()
349 egl.destroyContext(m_eglDisplay, m_eglContext); in deinit()
355 egl.destroySurface(m_eglDisplay, m_eglSurface); in deinit()
361 egl.terminate(m_eglDisplay); in deinit()
379 const Library& egl = m_eglTestCtx.getLibrary(); in initEGLContext() local
386 egl.bindAPI(EGL_OPENGL_ES_API); in initEGLContext()
387 m_eglContext = egl.createContext(m_eglDisplay, config, EGL_NO_CONTEXT, attribList); in initEGLContext()
388 EGLU_CHECK_MSG(egl, "eglCreateContext"); in initEGLContext()
390 egl.makeCurrent(m_eglDisplay, m_eglSurface, m_eglSurface, m_eglContext); in initEGLContext()
391 EGLU_CHECK_MSG(egl, "eglMakeCurrent"); in initEGLContext()
400 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
401 const int width = eglu::querySurfaceInt(egl, m_eglDisplay, m_eglSurface, EGL_WIDTH); in iterate()
402 const int height = eglu::querySurfaceInt(egl, m_eglDisplay, m_eglSurface, EGL_HEIGHT); in iterate()
411 …EGLU_CHECK_CALL(egl, surfaceAttrib(m_eglDisplay, m_eglSurface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTR… in iterate()
431 …EGLU_CHECK_CALL(egl, swapBuffersWithDamageKHR(m_eglDisplay, m_eglSurface, &damageRegion[0], (EGLin… in iterate()
458 EGLConfig getConfig (const Library& egl, EGLDisplay eglDisplay);
471 EGLConfig SwapBuffersWithDamageAndPreserveBufferTest::getConfig (const Library& egl, EGLDisplay egl… in getConfig() argument
473 return getEGLConfig(egl, eglDisplay, true); in getConfig()
480 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
481 const int width = eglu::querySurfaceInt(egl, m_eglDisplay, m_eglSurface, EGL_WIDTH); in iterate()
482 const int height = eglu::querySurfaceInt(egl, m_eglDisplay, m_eglSurface, EGL_HEIGHT); in iterate()
491 …EGLU_CHECK_CALL(egl, surfaceAttrib(m_eglDisplay, m_eglSurface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESE… in iterate()
496 EGLU_CHECK_CALL(egl, swapBuffersWithDamageKHR(m_eglDisplay, m_eglSurface, DE_NULL, 0)); in iterate()
513 …EGLU_CHECK_CALL(egl, swapBuffersWithDamageKHR(m_eglDisplay, m_eglSurface, &damageRegion[0], (EGLin… in iterate()
541 void checkExtension (const Library& egl, EGLDisplay eglDisplay);
555 void SwapBuffersWithDamageAndBufferAgeTest::checkExtension (const Library& egl, EGLDisplay eglDispl… in checkExtension() argument
557 if (!eglu::hasExtension(egl, eglDisplay, "EGL_KHR_swap_buffers_with_damage")) in checkExtension()
560 if (!eglu::hasExtension(egl, eglDisplay, "EGL_EXT_buffer_age")) in checkExtension()
568 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
569 const int width = eglu::querySurfaceInt(egl, m_eglDisplay, m_eglSurface, EGL_WIDTH); in iterate()
570 const int height = eglu::querySurfaceInt(egl, m_eglDisplay, m_eglSurface, EGL_HEIGHT); in iterate()
579 …EGLU_CHECK_CALL(egl, surfaceAttrib(m_eglDisplay, m_eglSurface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTR… in iterate()
584 EGLU_CHECK_CALL(egl, swapBuffersWithDamageKHR(m_eglDisplay, m_eglSurface, DE_NULL, 0)); in iterate()
593 EGLU_CHECK_CALL(egl, querySurface(m_eglDisplay, m_eglSurface, EGL_BUFFER_AGE_EXT, &bufferAge)); in iterate()
627 …EGLU_CHECK_CALL(egl, swapBuffersWithDamageKHR(m_eglDisplay, m_eglSurface, &damageRegion[0], (EGLin… in iterate()
738 EGLConfig getEGLConfig (const Library& egl, EGLDisplay eglDisplay, bool preserveBuffer) in getEGLConfig() argument
746 return eglu::chooseSingleConfig(egl, eglDisplay, filters); in getEGLConfig()