Lines Matching refs:display
91 static status_t selectEGLConfig(EGLDisplay display, EGLint format, EGLint renderableType, in selectEGLConfig() argument
134 err = selectConfigForAttribute(display, attribs.data(), wantedAttribute, wantedAttributeValue, in selectEGLConfig()
138 if (eglGetConfigAttrib(display, *config, EGL_CONFIG_CAVEAT, &caveat)) in selectEGLConfig()
148 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); in create() local
149 if (!eglInitialize(display, nullptr, nullptr)) { in create()
153 const auto eglVersion = eglQueryString(display, EGL_VERSION); in create()
159 const auto eglExtensions = eglQueryString(display, EGL_EXTENSIONS); in create()
172 config = chooseEglConfig(display, args.pixelFormat, /*logConfig*/ true); in create()
179 createEglContext(display, config, nullptr, priority, Protection::PROTECTED); in create()
184 createEglContext(display, config, protectedContext, priority, Protection::UNPROTECTED); in create()
191 placeholder = createPlaceholderEglPbufferSurface(display, config, args.pixelFormat, in create()
195 EGLBoolean success = eglMakeCurrent(display, placeholder, placeholder, ctxt); in create()
202 protectedPlaceholder = createPlaceholderEglPbufferSurface(display, config, args.pixelFormat, in create()
209 std::unique_ptr<SkiaGLRenderEngine> engine(new SkiaGLRenderEngine(args, display, ctxt, in create()
225 EGLConfig SkiaGLRenderEngine::chooseEglConfig(EGLDisplay display, int format, bool logConfig) { in chooseEglConfig() argument
230 err = selectEGLConfig(display, format, EGL_OPENGL_ES3_BIT, &config); in chooseEglConfig()
233 err = selectEGLConfig(display, format, EGL_OPENGL_ES2_BIT, &config); in chooseEglConfig()
238 err = selectEGLConfig(display, format, 0, &config); in chooseEglConfig()
244 format, eglQueryString(display, EGL_VENDOR), in chooseEglConfig()
245 eglQueryString(display, EGL_VERSION), in chooseEglConfig()
246 eglQueryString(display, EGL_EXTENSIONS), in chooseEglConfig()
247 eglQueryString(display, EGL_CLIENT_APIS) ?: "Not Supported"); in chooseEglConfig()
255 eglGetConfigAttrib(display, config, EGL_RED_SIZE, &r); in chooseEglConfig()
256 eglGetConfigAttrib(display, config, EGL_GREEN_SIZE, &g); in chooseEglConfig()
257 eglGetConfigAttrib(display, config, EGL_BLUE_SIZE, &b); in chooseEglConfig()
258 eglGetConfigAttrib(display, config, EGL_ALPHA_SIZE, &a); in chooseEglConfig()
260 ALOGI("vendor : %s", eglQueryString(display, EGL_VENDOR)); in chooseEglConfig()
261 ALOGI("version : %s", eglQueryString(display, EGL_VERSION)); in chooseEglConfig()
262 ALOGI("extensions: %s", eglQueryString(display, EGL_EXTENSIONS)); in chooseEglConfig()
263 ALOGI("Client API: %s", eglQueryString(display, EGL_CLIENT_APIS) ?: "Not Supported"); in chooseEglConfig()
270 SkiaGLRenderEngine::SkiaGLRenderEngine(const RenderEngineCreationArgs& args, EGLDisplay display, in SkiaGLRenderEngine() argument
275 mEGLDisplay(display), in SkiaGLRenderEngine()
427 EGLContext SkiaGLRenderEngine::createEglContext(EGLDisplay display, EGLConfig config, in createEglContext() argument
434 } else if (!eglGetConfigAttrib(display, config, EGL_RENDERABLE_TYPE, &renderableType)) { in createEglContext()
476 EGLContext context = eglCreateContext(display, config, shareContext, contextAttributes.data()); in createEglContext()
487 context = eglCreateContext(display, config, shareContext, contextAttributes.data()); in createEglContext()
516 EGLSurface SkiaGLRenderEngine::createPlaceholderEglPbufferSurface(EGLDisplay display, in createPlaceholderEglPbufferSurface() argument
521 placeholderConfig = chooseEglConfig(display, hwcFormat, /*logConfig*/ true); in createPlaceholderEglPbufferSurface()
535 return eglCreatePbufferSurface(display, placeholderConfig, attributes.data()); in createPlaceholderEglPbufferSurface()