Home
last modified time | relevance | path

Searched refs:mEGLDisplay (Results 1 – 11 of 11) sorted by relevance

/frameworks/support/heifwriter/src/main/java/androidx/heifwriter/
DEglWindowSurface.java42 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in EglWindowSurface
67 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup()
68 if (Objects.equals(mEGLDisplay, EGL14.EGL_NO_DISPLAY)) { in eglSetup()
72 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup()
73 mEGLDisplay = null; in eglSetup()
88 if (!EGL14.eglChooseConfig(mEGLDisplay, attribList, 0, mConfigs, 0, mConfigs.length, in eglSetup()
98 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, mConfigs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
126 mEGLSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mConfigs[0], mSurface, in createEGLSurface()
135 if (!Objects.equals(mEGLDisplay, EGL14.EGL_NO_DISPLAY)) { in releaseEGLSurface()
136 EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface); in releaseEGLSurface()
[all …]
/frameworks/native/services/surfaceflinger/RenderEngine/
DSurface.cpp31 : mEGLDisplay(engine.getEGLDisplay()), mEGLConfig(engine.getEGLConfig()) { in Surface()
34 mEGLConfig = RenderEngine::chooseEglConfig(mEGLDisplay, PIXEL_FORMAT_RGBA_8888, false); in Surface()
44 eglDestroySurface(mEGLDisplay, mEGLSurface); in setNativeWindow()
50 mEGLSurface = eglCreateWindowSurface(mEGLDisplay, mEGLConfig, mWindow, nullptr); in setNativeWindow()
55 if (!eglSwapBuffers(mEGLDisplay, mEGLSurface)) { in swapBuffers()
60 LOG_ALWAYS_FATAL(format, mEGLDisplay, mEGLSurface, error); in swapBuffers()
62 ALOGE(format, mEGLDisplay, mEGLSurface, error); in swapBuffers()
69 if (!eglGetConfigAttrib(mEGLDisplay, mEGLConfig, attrib, &value)) { in queryConfig()
78 if (!eglQuerySurface(mEGLDisplay, mEGLSurface, attrib, &value)) { in querySurface()
DRenderEngine.cpp154 : mEGLDisplay(EGL_NO_DISPLAY), in RenderEngine()
160 eglMakeCurrent(mEGLDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in ~RenderEngine()
161 eglTerminate(mEGLDisplay); in ~RenderEngine()
165 mEGLDisplay = display; in setEGLHandles()
171 return mEGLDisplay; in getEGLDisplay()
183 return mEGLDisplay == eglGetCurrentDisplay() && mEGLContext == eglGetCurrentContext(); in isCurrent()
205 success = eglMakeCurrent(mEGLDisplay, eglSurface, eglSurface, mEGLContext) == EGL_TRUE; in setCurrentSurface()
207 eglSwapInterval(mEGLDisplay, 0); in setCurrentSurface()
215 eglMakeCurrent(mEGLDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in resetCurrentSurface()
223 EGLSyncKHR sync = eglCreateSyncKHR(mEGLDisplay, EGL_SYNC_NATIVE_FENCE_ANDROID, nullptr); in flush()
[all …]
DImage.cpp33 Image::Image(const RenderEngine& engine) : mEGLDisplay(engine.getEGLDisplay()) {} in Image()
71 if (!eglDestroyImageKHR(mEGLDisplay, mEGLImage)) { in setNativeWindowBuffer()
79 mEGLImage = eglCreateImageKHR(mEGLDisplay, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, in setNativeWindowBuffer()
DImage.h56 EGLDisplay mEGLDisplay; variable
DSurface.h83 EGLDisplay mEGLDisplay; variable
DRenderEngine.h167 EGLDisplay mEGLDisplay; variable
/frameworks/base/opengl/java/com/google/android/gles_jni/
DEGLDisplayImpl.java22 long mEGLDisplay; field in EGLDisplayImpl
25 mEGLDisplay = dpy; in EGLDisplayImpl()
35 return mEGLDisplay == that.mEGLDisplay; in equals()
46 result = 31 * result + (int) (mEGLDisplay ^ (mEGLDisplay >>> 32)); in hashCode()
DEGLImpl.java113 if (mDisplay.mEGLDisplay != value) in eglGetDisplay()
133 if (mDisplay.mEGLDisplay != value) in eglGetCurrentDisplay()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DSurfaceTextureRenderer.java66 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in SurfaceTextureRenderer
421 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in configureEGLContext()
422 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in configureEGLContext()
426 if (!EGL14.eglInitialize(mEGLDisplay, version, /*offset*/ 0, version, /*offset*/ 1)) { in configureEGLContext()
441 EGL14.eglChooseConfig(mEGLDisplay, attribList, /*offset*/ 0, configs, /*offset*/ 0, in configureEGLContext()
449 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in configureEGLContext()
465 holder.eglSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mConfigs, in configureEGLOutputSurfaces()
487 EGL14.eglCreatePbufferSurface(mEGLDisplay, mConfigs, surfaceAttribs, 0); in configureEGLPbufferSurfaces()
495 if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) { in releaseEGLContext()
496 EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, in releaseEGLContext()
[all …]
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.h178 EGLDisplay mEGLDisplay; variable