Lines Matching refs:display
60 static void postSurface (const Library& egl, EGLDisplay display, EGLSurface surface, EGLint typeBit)
63 EGLU_CHECK_CALL(egl, swapBuffers(display, surface));
112 void RenderCase::executeForConfig (EGLDisplay display, EGLConfig config)
118 const EGLint configId = eglu::getConfigID(egl, display, config);
137 de::UniquePtr<eglu::NativeWindow> window (windowFactory.createWindow(&nativeDisplay, display, config, DE_NULL, params));
138 EGLSurface eglSurface = createWindowSurface(nativeDisplay, *window, display, config, DE_NULL);
139 eglu::UniqueSurface surface (egl, display, eglSurface);
141 executeForSurface(display, *surface, Config(config, EGL_WINDOW_BIT, 0));
161 std::auto_ptr<eglu::NativePixmap> pixmap (pixmapFactory.createPixmap(&nativeDisplay, display, config, DE_NULL, width, height));
162 EGLSurface eglSurface = createPixmapSurface(nativeDisplay, *pixmap, display, config, DE_NULL);
163 eglu::UniqueSurface surface (egl, display, eglSurface);
165 executeForSurface(display, *surface, Config(config, EGL_PIXMAP_BIT, 0));
189 eglu::UniqueSurface surface(egl, display, egl.createPbufferSurface(display, config, surfaceAttribs));
192 executeForSurface(display, *surface, Config(config, EGL_PBUFFER_BIT, 0));
218 void SingleContextRenderCase::executeForSurface (EGLDisplay display, EGLSurface surface, const Config& config)
223 const EGLint configApiMask = eglu::getConfigAttribInt(egl, display, config.config, EGL_RENDERABLE_TYPE);
278 eglu::UniqueContext context (egl, display, egl.createContext(display, config.config, EGL_NO_CONTEXT, &contextAttribs[0]));
280 EGLU_CHECK_CALL(egl, makeCurrent(display, surface, surface, *context));
281 executeForContext(display, *context, surface, Config(config.config, config.surfaceTypeBit, apiBit));
284 postSurface(egl, display, surface, config.surfaceTypeBit);
287 EGLU_CHECK_CALL(egl, makeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
303 void MultiContextRenderCase::executeForSurface (EGLDisplay display, EGLSurface surface, const Config& config)
306 const EGLint configApiMask = eglu::getConfigAttribInt(egl, display, config.config, EGL_RENDERABLE_TYPE);
324 contexts.push_back(std::make_pair(EGL_OPENGL_ES2_BIT, egl.createContext(display, config.config, EGL_NO_CONTEXT, &attribs[0])));
331 contexts.push_back(std::make_pair(EGL_OPENGL_ES3_BIT_KHR, egl.createContext(display, config.config, EGL_NO_CONTEXT, &attribs[0])));
338 contexts.push_back(std::make_pair(EGL_OPENGL_ES_BIT, egl.createContext(display, config.config, EGL_NO_CONTEXT, &attribs[0])));
345 contexts.push_back(std::make_pair(EGL_OPENVG_BIT, egl.createContext(display, config.config, EGL_NO_CONTEXT, &attribs[0])));
352 executeForContexts(display, surface, Config(config.config, config.surfaceTypeBit, m_apiMask), contexts);
354 EGLU_CHECK_CALL(egl, makeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
360 egl.destroyContext(display, i->second);
366 egl.destroyContext(display, i->second);