Lines Matching defs:surface

21  * \brief Simple surface construction test.
90 EGLSurface surface = EGL_NO_SURFACE;
96 surface = egl.createWindowSurface(display, config, window.getLegacyNative(), DE_NULL);
104 surface = egl.createPlatformWindowSurfaceEXT(display, config, nativeWindow, DE_NULL);
111 surface = egl.createPlatformWindowSurface(display, config, window.getPlatformNative(), DE_NULL);
116 return surface;
122 EGLSurface surface = EGL_NO_SURFACE;
127 surface = egl.createPixmapSurface(display, config, pixmap.getLegacyNative(), DE_NULL);
132 surface = egl.createPlatformPixmapSurfaceEXT(display, config, pixmap.getPlatformExtension(), DE_NULL);
137 surface = egl.createPlatformPixmapSurface(display, config, pixmap.getPlatformNative(), DE_NULL);
142 return surface;
185 log << TestLog::Message << "Creating window surface with config ID " << id << TestLog::EndMessage;
192 eglu::UniqueSurface surface (egl, display, createWindowSurface(display, config, m_eglTestCtx.getNativeDisplay(), *window, m_createType));
197 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_WIDTH, &windowWidth));
198 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_HEIGHT, &windowHeight));
202 log << TestLog::Message << " Fail, invalid surface size " << windowWidth << "x" << windowHeight << TestLog::EndMessage;
203 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid surface size");
254 log << TestLog::Message << "Creating pixmap surface with config ID " << id << TestLog::EndMessage;
261 eglu::UniqueSurface surface (egl, display, createPixmapSurface(display, config, m_eglTestCtx.getNativeDisplay(), *pixmap, m_createType));
265 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_WIDTH, &pixmapWidth));
266 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_HEIGHT, &pixmapHeight));
270 log << TestLog::Message << " Fail, invalid surface size " << pixmapWidth << "x" << pixmapHeight << TestLog::EndMessage;
271 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid surface size");
300 log << TestLog::Message << "Creating pbuffer surface with config ID " << id << TestLog::EndMessage;
324 EGLSurface surface = egl.createPbufferSurface(display, config, attribs);
326 TCU_CHECK(surface != EGL_NO_SURFACE);
327 egl.destroySurface(display, surface);
336 : TestCaseGroup(eglTestCtx, "create_surface", "Basic surface construction tests")