Lines Matching refs:mEglDisplay
89 : mEglDisplay(EGL_NO_DISPLAY) in EglManager()
109 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize()
110 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "Failed to get EGL_DEFAULT_DISPLAY! err=%s", in initialize()
114 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE, in initialize()
115 "Failed to initialize display %p! err=%s", mEglDisplay, eglErrorString()); in initialize()
250 auto extensions = StringUtils::split(eglQueryString(mEglDisplay, EGL_EXTENSIONS)); in initExtensions()
276 return mEglDisplay != EGL_NO_DISPLAY; in hasEglContext()
283 mEglConfig = load8BitsConfig(mEglDisplay, mSwapBehavior); in loadConfigs()
289 mEglConfig = load8BitsConfig(mEglDisplay, mSwapBehavior); in loadConfigs()
298 mEglConfigF16 = loadFP16Config(mEglDisplay, mSwapBehavior); in loadConfigs()
305 mEglConfig1010102 = load1010102Config(mEglDisplay, mSwapBehavior); in loadConfigs()
323 mEglDisplay, EglExtensions.noConfigContext ? ((EGLConfig) nullptr) : mEglConfig, in createContext()
330 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, in createPBufferSurface()
335 mPBufferSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, attribs); in createPBufferSurface()
339 mEglDisplay, mEglConfig, eglErrorString()); in createPBufferSurface()
416 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, config, window, attribs); in createSurface()
422 LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, in createSurface()
435 if (!eglDestroySurface(mEglDisplay, surface)) { in destroySurface()
441 if (mEglDisplay == EGL_NO_DISPLAY) return; in destroy()
443 eglDestroyContext(mEglDisplay, mEglContext); in destroy()
445 eglDestroySurface(mEglDisplay, mPBufferSurface); in destroy()
447 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in destroy()
448 eglTerminate(mEglDisplay); in destroy()
451 mEglDisplay = EGL_NO_DISPLAY; in destroy()
464 if (!eglMakeCurrent(mEglDisplay, surface, surface, mEglContext)) { in makeCurrent()
476 eglSwapInterval(mEglDisplay, 0); in makeCurrent()
489 eglQuerySurface(mEglDisplay, surface, EGL_BUFFER_AGE_EXT, &bufferAge); in queryBufferAge()
500 eglQuerySurface(mEglDisplay, surface, EGL_WIDTH, &frame.mWidth); in beginFrame()
501 eglQuerySurface(mEglDisplay, surface, EGL_HEIGHT, &frame.mHeight); in beginFrame()
503 eglBeginFrame(mEglDisplay, surface); in beginFrame()
512 if (!eglSetDamageRegionKHR(mEglDisplay, frame.mSurface, rects, 1)) { in damageFrame()
532 eglSwapBuffersWithDamageKHR(mEglDisplay, frame.mSurface, rects, screenDirty.isEmpty() ? 0 : 1); in swapBuffers()
552 EGLSyncKHR fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); in fence()
553 eglClientWaitSyncKHR(mEglDisplay, fence, EGL_SYNC_FLUSH_COMMANDS_BIT_KHR, EGL_FOREVER_KHR); in fence()
554 eglDestroySyncKHR(mEglDisplay, fence); in fence()
560 bool preserved = eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, in setPreserveBuffer()
567 if (eglQuerySurface(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, &swapBehavior)) { in setPreserveBuffer()
607 EGLSyncKHR sync = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_NATIVE_FENCE_ANDROID, attribs); in fenceWait()
617 eglWaitSyncKHR(mEglDisplay, sync, 0); in fenceWait()
619 eglDestroySyncKHR(mEglDisplay, sync); in fenceWait()
643 EGLSyncKHR sync = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_NATIVE_FENCE_ANDROID, nullptr); in createReleaseFence()
649 int fenceFd = eglDupNativeFenceFDANDROID(mEglDisplay, sync); in createReleaseFence()
650 eglDestroySyncKHR(mEglDisplay, sync); in createReleaseFence()
665 EGLint result = eglClientWaitSyncKHR(mEglDisplay, *eglFence, 0, 1000000000); in createReleaseFence()
674 eglDestroySyncKHR(mEglDisplay, *eglFence); in createReleaseFence()
679 *eglFence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, nullptr); in createReleaseFence()