Lines Matching refs:egl
87 namespace egl namespace
276 EGLContext createGLES2Context (const Library& egl, EGLDisplay display, EGLConfig config) in createGLES2Context() argument
285 EGLU_CHECK_CALL(egl, bindAPI(EGL_OPENGL_ES_API)); in createGLES2Context()
287 context = egl.createContext(display, config, EGL_NO_CONTEXT, attribList); in createGLES2Context()
288 EGLU_CHECK_MSG(egl, "eglCreateContext() failed"); in createGLES2Context()
302 void initializeExtension (const Library& egl);
333 void GetFrameTimestampTest::initializeExtension (const Library& egl) in initializeExtension() argument
335 …m_eglGetNextFrameIdANDROID = reinterpret_cast<eglGetNextFrameIdANDROIDFunc>(egl.getProcAddress("eg… in initializeExtension()
336 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetNextFrameIdANDROID failed."); in initializeExtension()
337 …m_eglGetCompositorTimingANDROID = reinterpret_cast<eglGetCompositorTimingANDROIDFunc>(egl.getProcA… in initializeExtension()
338 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetCompositorTimingANDROID failed."); in initializeExtension()
339 …rtedANDROID = reinterpret_cast<eglGetCompositorTimingSupportedANDROIDFunc>(egl.getProcAddress("egl… in initializeExtension()
340 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetCompositorTimingSupportedANDROID failed."); in initializeExtension()
341 …m_eglGetFrameTimestampsANDROID = reinterpret_cast<eglGetFrameTimestampsANDROIDFunc>(egl.getProcAdd… in initializeExtension()
342 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetFrameTimestampsANDROID failed."); in initializeExtension()
343 …portedANDROID = reinterpret_cast<eglGetFrameTimestampSupportedANDROIDFunc>(egl.getProcAddress("egl… in initializeExtension()
344 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetFrameTimestampSupportedANDROID failed."); in initializeExtension()
348 string getConfigIdString (const Library& egl, EGLDisplay display, EGLConfig config) in getConfigIdString() argument
353 EGLU_CHECK_CALL(egl, getConfigAttrib(display, config , EGL_CONFIG_ID, &id)); in getConfigIdString()
485 const Library& egl = m_eglTestCtx.getLibrary(); in executeForConfig() local
487 if (!eglu::hasExtension(egl, display, "EGL_ANDROID_get_frame_timestamps")) in executeForConfig()
490 initializeExtension(egl); in executeForConfig()
492 const string configIdStr (getConfigIdString(egl, display, config)); in executeForConfig()
499 …log << TestLog::Message << "EGL_RED_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL… in executeForConfig()
500 …log << TestLog::Message << "EGL_GREEN_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in executeForConfig()
501 …log << TestLog::Message << "EGL_BLUE_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL… in executeForConfig()
502 …log << TestLog::Message << "EGL_ALPHA_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in executeForConfig()
503 …log << TestLog::Message << "EGL_DEPTH_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in executeForConfig()
504 …log << TestLog::Message << "EGL_STENCIL_SIZE: " << eglu::getConfigAttribInt(egl, display, config, … in executeForConfig()
505 …log << TestLog::Message << "EGL_SAMPLES: " << eglu::getConfigAttribInt(egl, display, config, EGL_… in executeForConfig()
510 …eglu::UniqueSurface surface (egl, display, eglu::createWindowSurface(m_eglTestCtx.getNativeDis… in executeForConfig()
511 eglu::UniqueContext context (egl, display, createGLES2Context(egl, display, config)); in executeForConfig()
515 EGLU_CHECK_CALL(egl, surfaceAttrib(display, *surface, EGL_TIMESTAMPS_ANDROID, EGL_TRUE)); in executeForConfig()
519 EGLU_CHECK_CALL(egl, makeCurrent(display, *surface, *surface, *context)); in executeForConfig()
545 EGLU_CHECK_MSG(egl, "eglGetFrameTimestampSupportedANDROID failed."); in executeForConfig()
558 EGLU_CHECK_MSG(egl, "eglGetFrameTimestampSupportedANDROID failed."); in executeForConfig()
563 EGLU_CHECK_MSG(egl, "eglGetCompositorTimingSupportedANDROID failed."); in executeForConfig()
566 EGLU_CHECK_MSG(egl, "eglGetCompositorTimingSupportedANDROID failed."); in executeForConfig()
569 EGLU_CHECK_MSG(egl, "eglGetCompositorTimingSupportedANDROID failed."); in executeForConfig()
624 CHECK_NAKED_EGL_CALL(egl, m_eglGetNextFrameIdANDROID(display, *surface, &nextFrameId)); in executeForConfig()
628 CHECK_NAKED_EGL_CALL(egl, m_eglGetCompositorTimingANDROID( in executeForConfig()
656 EGLU_CHECK_CALL(egl, swapBuffers(display, *surface)); in executeForConfig()
667 CHECK_NAKED_EGL_CALL(egl, m_eglGetFrameTimestampsANDROID( in executeForConfig()
691 CHECK_NAKED_EGL_CALL(egl, m_eglGetFrameTimestampsANDROID( in executeForConfig()
727 EGLU_CHECK_CALL(egl, makeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)); in executeForConfig()
731 EGLU_CHECK_CALL(egl, makeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)); in executeForConfig()