/aosp12/frameworks/native/opengl/tests/EGLTest/ |
H A D | EGL_test.cpp | 67 EGLDisplay mEglDisplay; member in android::EGLTest 71 mEglDisplay(EGL_NO_DISPLAY) { in EGLTest() 75 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp() 76 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp() 88 EGLBoolean success = eglTerminate(mEglDisplay); in TearDown() 289 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F() 342 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F() 429 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F() 606 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F() 656 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F() [all …]
|
/aosp12/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGLToGL_test.cpp | 46 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 50 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 68 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 71 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 98 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 116 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 166 EXPECT_TRUE(eglSwapInterval(mEglDisplay, 0)); in TEST_F() 212 EXPECT_TRUE(eglSwapInterval(mEglDisplay, 0)); in TEST_F() 357 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 367 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() [all …]
|
H A D | SurfaceTextureMultiContextGL.h | 38 mSecondEglContext = eglCreateContext(mEglDisplay, mGlConfig, in SetUp() 43 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 50 mThirdEglContext = eglCreateContext(mEglDisplay, mGlConfig, in SetUp() 55 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 62 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 68 eglDestroyContext(mEglDisplay, mThirdEglContext); in TearDown() 71 eglDestroyContext(mEglDisplay, mSecondEglContext); in TearDown()
|
H A D | GLTest.cpp | 36 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp() 38 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp() 42 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp() 86 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp() 97 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 116 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown() 124 eglDestroyContext(mEglDisplay, mEglContext); in TearDown() 127 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown() 129 if (mEglDisplay != EGL_NO_DISPLAY) { in TearDown() 130 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in TearDown() [all …]
|
H A D | SurfaceTextureMultiContextGL_test.cpp | 37 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 129 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 161 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 193 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 221 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 314 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 322 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 349 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 429 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in TEST_F() 441 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in TEST_F() [all …]
|
H A D | SurfaceTextureClient_test.cpp | 36 mEglDisplay(EGL_NO_DISPLAY), in SurfaceTextureClientTest() 61 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp() 96 eglDestroyContext(mEglDisplay, mEglContext); in TearDown() 97 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown() 98 eglTerminate(mEglDisplay); in TearDown() 119 EGLDisplay mEglDisplay; member in android::SurfaceTextureClientTest 708 mEglDisplay(EGL_NO_DISPLAY), in MultiSurfaceTextureClientTest() 722 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp() 771 if (mEglDisplay != EGL_NO_DISPLAY) { in TearDown() 772 eglTerminate(mEglDisplay); in TearDown() [all …]
|
H A D | SurfaceTextureGLToGL.h | 40 mProducerEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUpWindowAndContext() 45 mProducerEglContext = eglCreateContext(mEglDisplay, mGlConfig, in SetUpWindowAndContext() 53 eglDestroyContext(mEglDisplay, mProducerEglContext); in TearDown() 56 eglDestroySurface(mEglDisplay, mProducerEglSurface); in TearDown()
|
H A D | GLTest.h | 39 mEglDisplay(EGL_NO_DISPLAY), in GLTest() 64 EGLDisplay mEglDisplay; variable
|
/aosp12/frameworks/base/libs/hwui/renderthread/ |
H A D | EglManager.cpp | 89 : mEglDisplay(EGL_NO_DISPLAY) in EglManager() 276 return mEglDisplay != EGL_NO_DISPLAY; in hasEglContext() 441 if (mEglDisplay == EGL_NO_DISPLAY) return; in destroy() 448 eglTerminate(mEglDisplay); in destroy() 451 mEglDisplay = EGL_NO_DISPLAY; in destroy() 476 eglSwapInterval(mEglDisplay, 0); in makeCurrent() 503 eglBeginFrame(mEglDisplay, surface); in beginFrame() 554 eglDestroySyncKHR(mEglDisplay, fence); in fence() 617 eglWaitSyncKHR(mEglDisplay, sync, 0); in fenceWait() 619 eglDestroySyncKHR(mEglDisplay, sync); in fenceWait() [all …]
|
/aosp12/frameworks/av/cmds/screenrecord/ |
H A D | EglWindow.cpp | 102 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in eglSetupContext() 103 if (mEglDisplay == EGL_NO_DISPLAY) { in eglSetupContext() 109 result = eglInitialize(mEglDisplay, &majorVersion, &minorVersion); in eglSetupContext() 136 result = eglChooseConfig(mEglDisplay, in eglSetupContext() 160 if (mEglDisplay != EGL_NO_DISPLAY) { in eglRelease() 161 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in eglRelease() 165 eglDestroyContext(mEglDisplay, mEglContext); in eglRelease() 169 eglDestroySurface(mEglDisplay, mEglSurface); in eglRelease() 173 mEglDisplay = EGL_NO_DISPLAY; in eglRelease() 183 eglPresentationTimeANDROID(mEglDisplay, mEglSurface, whenNsec); in presentationTime() [all …]
|
H A D | EglWindow.h | 35 mEglDisplay(EGL_NO_DISPLAY), in EglWindow() 75 EGLDisplay mEglDisplay; variable
|
/aosp12/frameworks/native/libs/nativedisplay/surfacetexture/ |
H A D | EGLConsumer.cpp | 380 mEglDisplay = dpy; in checkAndUpdateEglStateLocked() 397 mEglDisplay = dpy; in checkAndUpdateEglStateLocked() 406 if (mEglDisplay != dpy && mEglDisplay != EGL_NO_DISPLAY) { in detachFromContext() 425 mEglDisplay = EGL_NO_DISPLAY; in detachFromContext() 459 mEglDisplay = dpy; in attachToContext() 546 if (mEglDisplay != dpy || mEglDisplay == EGL_NO_DISPLAY) { in doGLFenceWaitLocked() 611 eglTerminate(mEglDisplay); in ~EglImage() 623 eglTerminate(mEglDisplay); in createIfNeeded() 625 mEglDisplay = EGL_NO_DISPLAY; in createIfNeeded() 630 mEglDisplay = eglDisplay; in createIfNeeded() [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/ |
H A D | SurfaceTextureRenderer.java | 41 private EGLDisplay mEglDisplay; field in SurfaceTextureRenderer 57 if (mEglDisplay != null && mEglSurface != null) { 59 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 79 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in release() 80 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in release() 83 mEgl.eglTerminate(mEglDisplay); in release() 86 mEglDisplay = null; in release() 118 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initialize() 122 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initialize() 128 mEglConfig = chooseConfig(mEgl, mEglDisplay); in initialize() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/tests/ |
H A D | BufferGenerator.cpp | 106 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize() 107 if (mEglDisplay == EGL_NO_DISPLAY) return false; in initialize() 111 if (!eglInitialize(mEglDisplay, &major, &minor)) { in initialize() 137 if (!eglChooseConfig(mEglDisplay, configAttrs, configs, 1, &configCnt)) { in initialize() 140 eglTerminate(mEglDisplay); in initialize() 147 eglTerminate(mEglDisplay); in initialize() 182 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize() 193 void present() const { eglSwapBuffers(mEglDisplay, mEglSurface); } in present() 197 if (mEglDisplay == EGL_NO_DISPLAY) return; in cleanup() 203 eglTerminate(mEglDisplay); in cleanup() [all …]
|
/aosp12/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 120 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer() 149 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer() 387 mEglDisplay, slot); in updateAndReleaseLocked() 513 mEglDisplay = dpy; in checkAndUpdateEglStateLocked() 530 mEglDisplay = dpy; in checkAndUpdateEglStateLocked() 566 if (mEglDisplay != dpy && mEglDisplay != EGL_NO_DISPLAY) { in detachFromContext() 585 mEglDisplay = EGL_NO_DISPLAY; in detachFromContext() 625 mEglDisplay = dpy; in attachToContext() 849 if (mEglDisplay != dpy || mEglDisplay == EGL_NO_DISPLAY) { in doGLFenceWaitLocked() 939 mEglDisplay(EGL_NO_DISPLAY) { in EglImage() [all …]
|
/aosp12/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | BlockingGLTextureView.java | 109 EGLDisplay mEglDisplay; field in BlockingGLTextureView.EglHelper 159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start() 167 if (!mEgl.eglInitialize(mEglDisplay, version)) { in start() 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in start() 199 if (mEglDisplay == null) { in createSurface() 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap() 272 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in destroySurfaceImp() 279 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finish() 282 if (mEglDisplay != null) { in finish() 283 mEgl.eglTerminate(mEglDisplay); in finish() [all …]
|
/aosp12/packages/apps/Gallery2/src/com/android/photos/views/ |
H A D | BlockingGLTextureView.java | 109 EGLDisplay mEglDisplay; field in BlockingGLTextureView.EglHelper 159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start() 167 if (!mEgl.eglInitialize(mEglDisplay, version)) { in start() 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in start() 199 if (mEglDisplay == null) { in createSurface() 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap() 272 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in destroySurfaceImp() 279 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finish() 282 if (mEglDisplay != null) { in finish() 283 mEgl.eglTerminate(mEglDisplay); in finish() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/ |
H A D | EglHelper.java | 91 private EGLDisplay mEglDisplay; field in EglHelper 116 if (!eglInitialize(mEglDisplay, mEglVersion, 0 /* majorOffset */, in init() 144 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in connectDisplay() 149 String queryString = eglQueryString(mEglDisplay, EGL_EXTENSIONS); in connectDisplay() 227 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createEglSurface() 248 eglDestroySurface(mEglDisplay, mEglSurface); in destroyEglSurface() 302 eglDestroyContext(mEglDisplay, mEglContext); in destroyEglContext() 320 return mEglDisplay != null && mEglDisplay != EGL_NO_DISPLAY; in hasEglDisplay() 328 boolean status = eglSwapBuffers(mEglDisplay, mEglSurface); in swapBuffer() 353 eglTerminate(mEglDisplay); in terminateEglDisplay() [all …]
|
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | SingleFrameTextureViewTestActivity.java | 85 private EGLDisplay mEglDisplay; in onSurfaceTextureAvailable() 105 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in onSurfaceTextureAvailable() 121 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in onSurfaceTextureAvailable() 122 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in onSurfaceTextureAvailable() 128 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in onSurfaceTextureAvailable() 129 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in onSurfaceTextureAvailable() 135 if (!mEgl.eglInitialize(mEglDisplay, version)) { in onSurfaceTextureAvailable() 145 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in onSurfaceTextureAvailable() 147 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in onSurfaceTextureAvailable() 159 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in onSurfaceTextureAvailable() [all …]
|
H A D | GLTextureViewActivity.java | 141 private EGLDisplay mEglDisplay; field in GLTextureViewActivity.RenderThread 238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run() 347 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL() 348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent() 364 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL() 365 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL() 371 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL() 381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL() 395 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL() [all …]
|
/aosp12/packages/apps/Nfc/src/com/android/nfc/beam/ |
H A D | FireflyRenderer.java | 159 EGLDisplay mEglDisplay; field in FireflyRenderer.FireflyRenderThread 204 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run() 230 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run() 294 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL() 295 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL() 302 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL() 324 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL() 336 if (mEgl == null || mEglDisplay == null) { in finishGL() 341 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, in finishGL() 345 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() [all …]
|
/aosp12/packages/screensavers/Basic/src/com/android/dreams/basic/ |
H A D | ColorsGLRenderer.java | 70 private EGLDisplay mEglDisplay; field in ColorsGLRenderer 136 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in doFrame() 158 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL() 159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL() 165 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL() 175 mEglContext = createContext(mEgl, mEglDisplay, eglConfig); in initGL() 177 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, eglConfig, mSurface, null); in initGL() 189 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL() 196 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL() 197 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() [all …]
|
/aosp12/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/ |
H A D | ImageFlipRenderThread.java | 95 private EGLDisplay mEglDisplay; field in ImageFlipRenderThread 191 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run() 300 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL() 301 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 307 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent() 317 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL() 318 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL() 324 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL() 334 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL() 348 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/display/ |
H A D | ColorFade.java | 99 private EGLDisplay mEglDisplay; field in ColorFade 445 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw() 611 if (mEglDisplay == null) { 612 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); 613 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) { 620 mEglDisplay = null; 654 EGL14.eglDestroyContext(mEglDisplay, mEglContext); 684 EGL14.eglDestroySurface(mEglDisplay, mEglSurface); 720 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) { 774 if (mEglDisplay != null) { [all …]
|
/aosp12/frameworks/base/opengl/java/android/opengl/ |
H A D | GLSurfaceView.java | 1036 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start() 1038 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start() 1046 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start() 1089 if (mEglDisplay == null) { in createSurface() 1108 mEglDisplay, mEglConfig, view.getHolder()); in createSurface() 1170 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap() 1185 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, in destroySurfaceImp() 1207 if (mEglDisplay != null) { in finish() 1208 mEgl.eglTerminate(mEglDisplay); in finish() 1209 mEglDisplay = null; in finish() [all …]
|