Home | History | Annotate | Download | only in RenderEngine

Lines Matching refs:display

49 RenderEngine* RenderEngine::create(EGLDisplay display, int hwcFormat) {
53 // both a 16-bit primary display framebuffer and a 32-bit virtual display
60 eglQueryStringImplementationANDROID(display, EGL_EXTENSIONS),
62 config = chooseEglConfig(display, hwcFormat);
68 } else if (!eglGetConfigAttrib(display, config,
92 EGLContext ctxt = eglCreateContext(display, config, NULL, contextAttributes);
103 dummyConfig = chooseEglConfig(display, hwcFormat);
106 EGLSurface dummy = eglCreatePbufferSurface(display, dummyConfig, attribs);
108 EGLBoolean success = eglMakeCurrent(display, dummy, dummy, ctxt);
145 eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
146 eglDestroySurface(display, dummy);
366 static status_t selectEGLConfig(EGLDisplay display, EGLint format,
391 err = selectConfigForAttribute(display, attribs,
395 if (eglGetConfigAttrib(display, *config, EGL_CONFIG_CAVEAT, &caveat))
402 EGLConfig RenderEngine::chooseEglConfig(EGLDisplay display, int format) {
407 err = selectEGLConfig(display, format, EGL_OPENGL_ES2_BIT, &config);
410 err = selectEGLConfig(display, format, EGL_OPENGL_ES_BIT, &config);
415 err = selectEGLConfig(display, format, 0, &config);
425 eglGetConfigAttrib(display, config, EGL_RED_SIZE, &r);
426 eglGetConfigAttrib(display, config, EGL_GREEN_SIZE, &g);
427 eglGetConfigAttrib(display, config, EGL_BLUE_SIZE, &b);
428 eglGetConfigAttrib(display, config, EGL_ALPHA_SIZE, &a);
430 ALOGI("vendor : %s", eglQueryString(display, EGL_VENDOR));
431 ALOGI("version : %s", eglQueryString(display, EGL_VERSION));
432 ALOGI("extensions: %s", eglQueryString(display, EGL_EXTENSIONS));
433 ALOGI("Client API: %s", eglQueryString(display, EGL_CLIENT_APIS)?:"Not Supported");