Lines Matching defs:egl
87 namespace egl
273 EGLContext createGLES2Context (const Library& egl, EGLDisplay display, EGLConfig config)
282 EGLU_CHECK_CALL(egl, bindAPI(EGL_OPENGL_ES_API));
284 context = egl.createContext(display, config, EGL_NO_CONTEXT, attribList);
285 EGLU_CHECK_MSG(egl, "eglCreateContext() failed");
299 void initializeExtension (const Library& egl);
330 void GetFrameTimestampTest::initializeExtension (const Library& egl)
332 m_eglGetNextFrameIdANDROID = reinterpret_cast<eglGetNextFrameIdANDROIDFunc>(egl.getProcAddress("eglGetNextFrameIdANDROID"));
333 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetNextFrameIdANDROID failed.");
334 m_eglGetCompositorTimingANDROID = reinterpret_cast<eglGetCompositorTimingANDROIDFunc>(egl.getProcAddress("eglGetCompositorTimingANDROID"));
335 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetCompositorTimingANDROID failed.");
336 m_eglGetCompositorTimingSupportedANDROID = reinterpret_cast<eglGetCompositorTimingSupportedANDROIDFunc>(egl.getProcAddress("eglGetCompositorTimingSupportedANDROID"));
337 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetCompositorTimingSupportedANDROID failed.");
338 m_eglGetFrameTimestampsANDROID = reinterpret_cast<eglGetFrameTimestampsANDROIDFunc>(egl.getProcAddress("eglGetFrameTimestampsANDROID"));
339 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetFrameTimestampsANDROID failed.");
340 m_eglGetFrameTimestampSupportedANDROID = reinterpret_cast<eglGetFrameTimestampSupportedANDROIDFunc>(egl.getProcAddress("eglGetFrameTimestampSupportedANDROID"));
341 EGLU_CHECK_MSG(egl, "getProcAddress of eglGetFrameTimestampSupportedANDROID failed.");
345 string getConfigIdString (const Library& egl, EGLDisplay display, EGLConfig config)
350 EGLU_CHECK_CALL(egl, getConfigAttrib(display, config , EGL_CONFIG_ID, &id));
482 const Library& egl = m_eglTestCtx.getLibrary();
484 if (!eglu::hasExtension(egl, display, "EGL_ANDROID_get_frame_timestamps"))
487 initializeExtension(egl);
489 const string configIdStr (getConfigIdString(egl, display, config));
496 log << TestLog::Message << "EGL_RED_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_RED_SIZE) << TestLog::EndMessage;
497 log << TestLog::Message << "EGL_GREEN_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_GREEN_SIZE) << TestLog::EndMessage;
498 log << TestLog::Message << "EGL_BLUE_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_BLUE_SIZE) << TestLog::EndMessage;
499 log << TestLog::Message << "EGL_ALPHA_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_ALPHA_SIZE) << TestLog::EndMessage;
500 log << TestLog::Message << "EGL_DEPTH_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_DEPTH_SIZE) << TestLog::EndMessage;
501 log << TestLog::Message << "EGL_STENCIL_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_STENCIL_SIZE) << TestLog::EndMessage;
502 log << TestLog::Message << "EGL_SAMPLES: " << eglu::getConfigAttribInt(egl, display, config, EGL_SAMPLES) << TestLog::EndMessage;
507 eglu::UniqueSurface surface (egl, display, eglu::createWindowSurface(m_eglTestCtx.getNativeDisplay(), *window, display, config, DE_NULL));
508 eglu::UniqueContext context (egl, display, createGLES2Context(egl, display, config));
512 EGLU_CHECK_CALL(egl, surfaceAttrib(display, *surface, EGL_TIMESTAMPS_ANDROID, EGL_TRUE));
516 EGLU_CHECK_CALL(egl, makeCurrent(display, *surface, *surface, *context));
542 EGLU_CHECK_MSG(egl, "eglGetFrameTimestampSupportedANDROID failed.");
555 EGLU_CHECK_MSG(egl, "eglGetFrameTimestampSupportedANDROID failed.");
560 EGLU_CHECK_MSG(egl, "eglGetCompositorTimingSupportedANDROID failed.");
563 EGLU_CHECK_MSG(egl, "eglGetCompositorTimingSupportedANDROID failed.");
566 EGLU_CHECK_MSG(egl, "eglGetCompositorTimingSupportedANDROID failed.");
621 EGLU_CHECK_CALL(egl, swapBuffers(display, *surface));
645 CHECK_NAKED_EGL_CALL(egl, m_eglGetNextFrameIdANDROID(display, *surface, &nextFrameId));
649 CHECK_NAKED_EGL_CALL(egl, m_eglGetCompositorTimingANDROID(
677 EGLU_CHECK_CALL(egl, swapBuffers(display, *surface));
688 CHECK_NAKED_EGL_CALL(egl, m_eglGetFrameTimestampsANDROID(
713 CHECK_NAKED_EGL_CALL(egl, m_eglGetFrameTimestampsANDROID(
749 EGLU_CHECK_CALL(egl, makeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
753 EGLU_CHECK_CALL(egl, makeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
797 } // egl