/frameworks/base/libs/hwui/renderthread/ |
D | EglManager.cpp | 69 , mEglDisplay(EGL_NO_DISPLAY) in EglManager() 87 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize() 88 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, in initialize() 92 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE, in initialize() 93 "Failed to initialize display %p! err=%s", mEglDisplay, egl_error_str()); in initialize() 105 return mEglDisplay != EGL_NO_DISPLAY; in hasEglContext() 109 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "No EGL context"); in requireGlContext() 135 if (!eglChooseConfig(mEglDisplay, attribs, &mEglConfig, num_configs, &num_configs) in loadConfig() 151 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, attribs); in createContext() 184 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, in usePBufferSurface() [all …]
|
D | EglManager.h | 71 EGLDisplay mEglDisplay; variable
|
/frameworks/native/libs/gui/tests/ |
D | SurfaceTextureGLToGL_test.cpp | 36 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, in TEST_F() 43 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 47 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 65 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 68 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 87 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, in TEST_F() 92 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 110 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F() 113 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 156 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, in TEST_F() [all …]
|
D | SurfaceTextureMultiContextGL.h | 37 mSecondEglContext = eglCreateContext(mEglDisplay, mGlConfig, in SetUp() 42 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 49 mThirdEglContext = eglCreateContext(mEglDisplay, mGlConfig, in SetUp() 54 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 61 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 67 eglDestroyContext(mEglDisplay, mThirdEglContext); in TearDown() 70 eglDestroyContext(mEglDisplay, mSecondEglContext); in TearDown()
|
D | SRGB_test.cpp | 51 mEglDisplay(EGL_NO_DISPLAY), mEglConfig(), in SRGBTest() 57 if (mEglDisplay != EGL_NO_DISPLAY) { in ~SRGBTest() 59 eglDestroySurface(mEglDisplay, mEglSurface); in ~SRGBTest() 62 eglDestroyContext(mEglDisplay, mEglContext); in ~SRGBTest() 64 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in ~SRGBTest() 66 eglTerminate(mEglDisplay); in ~SRGBTest() 231 EGLDisplay mEglDisplay; member in android::SRGBTest 243 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in createEGLSurface() 245 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in createEGLSurface() 247 EXPECT_TRUE(eglInitialize(mEglDisplay, NULL, NULL)); in createEGLSurface() [all …]
|
D | GLTest.cpp | 34 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp() 36 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp() 40 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp() 46 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 1, in SetUp() 77 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window); in SetUp() 84 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp() 90 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp() 95 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 100 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp() 102 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp() [all …]
|
D | SurfaceTextureMultiContextGL_test.cpp | 36 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 106 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in TEST_F() 122 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 152 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 183 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 210 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 279 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in TEST_F() 298 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 306 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 332 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() [all …]
|
D | SurfaceTextureGLToGL.h | 38 mProducerEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp() 43 mProducerEglContext = eglCreateContext(mEglDisplay, mGlConfig, in SetUp() 51 eglDestroyContext(mEglDisplay, mProducerEglContext); in TearDown() 54 eglDestroySurface(mEglDisplay, mProducerEglSurface); in TearDown()
|
D | SurfaceTextureClient_test.cpp | 35 mEglDisplay(EGL_NO_DISPLAY), in SurfaceTextureClientTest() 57 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp() 59 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp() 62 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp() 67 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), in SetUp() 76 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp() 80 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); in SetUp() 84 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp() 93 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TearDown() 94 eglDestroyContext(mEglDisplay, mEglContext); in TearDown() [all …]
|
D | GLTest.h | 38 mEglDisplay(EGL_NO_DISPLAY), in GLTest() 62 EGLDisplay mEglDisplay; variable
|
D | SurfaceTextureGLThreadToGL.h | 172 producerThread->setEglObjects(mEglDisplay, mProducerEglSurface, in runProducerThread()
|
D | SurfaceTextureGLThreadToGL_test.cpp | 169 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
|
/frameworks/native/opengl/tests/EGLTest/ |
D | EGL_test.cpp | 29 EGLDisplay mEglDisplay; member in android::EGLTest 33 mEglDisplay(EGL_NO_DISPLAY) { in EGLTest() 37 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp() 38 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp() 43 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp() 50 EGLBoolean success = eglTerminate(mEglDisplay); in TearDown() 67 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F() 74 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F() 77 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F() 80 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F() [all …]
|
/frameworks/av/cmds/screenrecord/ |
D | EglWindow.cpp | 53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow() 82 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); in createPbuffer() 93 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent() 103 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in eglSetupContext() 104 if (mEglDisplay == EGL_NO_DISPLAY) { in eglSetupContext() 110 result = eglInitialize(mEglDisplay, &majorVersion, &minorVersion); in eglSetupContext() 137 result = eglChooseConfig(mEglDisplay, in eglSetupContext() 149 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in eglSetupContext() 161 if (mEglDisplay != EGL_NO_DISPLAY) { in eglRelease() 162 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in eglRelease() [all …]
|
D | EglWindow.h | 35 mEglDisplay(EGL_NO_DISPLAY), in EglWindow() 75 EGLDisplay mEglDisplay; variable
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | BlockingGLTextureView.java | 109 EGLDisplay mEglDisplay; field in BlockingGLTextureView.EglHelper 118 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { in chooseEglConfig() 157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start() 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() 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in createSurface() 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap() [all …]
|
/frameworks/native/libs/gui/ |
D | GLConsumer.cpp | 133 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer() 160 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer() 265 err = syncForReleaseLocked(mEglDisplay); in releaseTexImage() 275 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage() 375 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked() 383 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked() 392 err = mEglSlots[buf].mEglImage->createIfNeeded(mEglDisplay, item.mCrop); in updateAndReleaseLocked() 395 mEglDisplay, buf); in updateAndReleaseLocked() 397 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked() 402 err = syncForReleaseLocked(mEglDisplay); in updateAndReleaseLocked() [all …]
|
D | BufferQueueCore.cpp | 202 eglDestroySyncKHR(mSlots[slot].mEglDisplay, mSlots[slot].mEglFence); in freeBufferLocked()
|
/frameworks/av/media/libstagefright/tests/ |
D | SurfaceMediaSource_test.cpp | 56 mEglDisplay(EGL_NO_DISPLAY), in GLTest() 63 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp() 65 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp() 69 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp() 75 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, in SetUp() 107 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp() 116 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp() 122 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp() 127 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 132 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
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() 383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ImageWallpaper.java | 123 private EGLDisplay mEglDisplay; field in ImageWallpaper.DrawableEngine 533 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL() 648 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in finishGL() 649 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 650 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL() 651 mEgl.eglTerminate(mEglDisplay); in finishGL() 657 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY); in initGL() 658 if (mEglDisplay == EGL_NO_DISPLAY) { in initGL() 664 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL() 674 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | ColorFade.java | 90 private EGLDisplay mEglDisplay; field in ColorFade 387 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw() 500 if (mEglDisplay == null) { 501 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); 502 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) { 508 if (!EGL14.eglInitialize(mEglDisplay, version, 0, version, 1)) { 509 mEglDisplay = null; 527 if (!EGL14.eglChooseConfig(mEglDisplay, eglConfigAttribList, 0, 540 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, 594 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLSurfaceView.java | 1005 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start() 1007 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start() 1015 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start() 1023 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start() 1029 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start() 1058 if (mEglDisplay == null) { in createSurface() 1077 mEglDisplay, mEglConfig, view.getHolder()); in createSurface() 1094 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 1139 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap() 1154 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, in destroySurfaceImp() [all …]
|
/frameworks/native/include/gui/ |
D | BufferSlot.h | 35 : mEglDisplay(EGL_NO_DISPLAY), in BufferSlot() 50 EGLDisplay mEglDisplay; member
|
D | GLConsumer.h | 254 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence); in releaseBufferLocked() 323 EGLDisplay mEglDisplay; variable 442 EGLDisplay mEglDisplay; variable
|