/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureMultiContextGL.h | 38 mSecondEglContext = eglCreateContext(mEglDisplay, mGlConfig, 43 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 50 mThirdEglContext = eglCreateContext(mEglDisplay, mGlConfig, 55 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 62 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 68 eglDestroyContext(mEglDisplay, mThirdEglContext); 71 eglDestroyContext(mEglDisplay, mSecondEglContext);
|
H A D | SurfaceTextureGLToGL.h | 40 mProducerEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 45 mProducerEglContext = eglCreateContext(mEglDisplay, mGlConfig, 53 eglDestroyContext(mEglDisplay, mProducerEglContext); 56 eglDestroySurface(mEglDisplay, mProducerEglSurface);
|
H A D | SurfaceTextureGLToGL_test.cpp | 39 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, 46 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 50 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 68 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 71 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 93 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, 98 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 116 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 119 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 163 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurfac [all...] |
H A D | GLTest.cpp | 34 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 36 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 40 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 46 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 1, 77 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window); 84 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, 90 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 95 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 100 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); 102 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurfac [all...] |
H A D | SurfaceTextureMultiContextGL_test.cpp | 37 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 112 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, 129 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 161 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 193 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 221 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 294 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, 314 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 322 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 349 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurfac [all...] |
H A D | GLTest.h | 39 mEglDisplay(EGL_NO_DISPLAY), 64 EGLDisplay mEglDisplay; member in class:android::GLTest
|
H A D | SurfaceTextureClient_test.cpp | 39 mEglDisplay(EGL_NO_DISPLAY), 62 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 64 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 67 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 72 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), 81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); 85 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); 89 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); 98 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 99 eglDestroyContext(mEglDisplay, mEglContex 122 EGLDisplay mEglDisplay; member in class:android::SurfaceTextureClientTest 793 EGLDisplay mEglDisplay; member in class:android::MultiSurfaceTextureClientTest [all...] |
H A D | SurfaceTextureGLThreadToGL.h | 172 producerThread->setEglObjects(mEglDisplay, mProducerEglSurface,
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | EglManager.cpp | 83 , mEglDisplay(EGL_NO_DISPLAY) 95 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 96 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, 100 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE, 101 "Failed to initialize display %p! err=%s", mEglDisplay, eglErrorString()); local 145 eglQueryString(mEglDisplay, EGL_EXTENSIONS)); 158 return mEglDisplay != EGL_NO_DISPLAY; 179 if (!eglChooseConfig(mEglDisplay, attribs, &mEglConfig, num_configs, &num_configs) 198 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, attribs); 204 LOG_ALWAYS_FATAL_IF(mEglDisplay [all...] |
H A D | EglManager.h | 77 EGLDisplay mEglDisplay; member in class:android::uirenderer::renderthread::EglManager
|
/frameworks/av/cmds/screenrecord/ |
H A D | EglWindow.cpp | 52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), 81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); 92 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 102 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 103 if (mEglDisplay == EGL_NO_DISPLAY) { 109 result = eglInitialize(mEglDisplay, &majorVersion, &minorVersion); 136 result = eglChooseConfig(mEglDisplay, 148 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, 160 if (mEglDisplay != EGL_NO_DISPLAY) { 161 eglMakeCurrent(mEglDisplay, EGL_NO_SURFAC [all...] |
H A D | EglWindow.h | 35 mEglDisplay(EGL_NO_DISPLAY), 75 EGLDisplay mEglDisplay; member in class:android::EglWindow
|
/frameworks/native/opengl/tests/EGLTest/ |
H A D | EGL_test.cpp | 59 EGLDisplay mEglDisplay; 63 mEglDisplay(EGL_NO_DISPLAY) { 67 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 68 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 73 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 80 EGLBoolean success = eglTerminate(mEglDisplay); 97 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); 104 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); 107 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); 110 success = eglGetConfigAttrib(mEglDisplay, confi [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | BlockingGLTextureView.java | 109 EGLDisplay mEglDisplay; field in class:BlockingGLTextureView.EglHelper 118 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { 157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 167 if (!mEgl.eglInitialize(mEglDisplay, version)) { 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 199 if (mEglDisplay == null) { 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurfac [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | SingleFrameTextureViewTestActivity.java | 85 private EGLDisplay mEglDisplay; 105 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 121 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 122 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 128 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 129 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 135 if (!mEgl.eglInitialize(mEglDisplay, version)) { 145 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 147 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 159 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurfac [all...] |
H A D | GLTextureViewActivity.java | 141 private EGLDisplay mEglDisplay; field in class:GLTextureViewActivity.RenderThread 238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 347 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 364 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 365 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 371 if (!mEgl.eglInitialize(mEglDisplay, version)) { 381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfi [all...] |
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
H A D | Hwc2TestBuffer.cpp | 116 : mEglDisplay(EGL_NO_DISPLAY), 129 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 130 if (mEglDisplay == EGL_NO_DISPLAY) return false; 134 if (!eglInitialize(mEglDisplay, &major, &minor)) { 155 if (!eglChooseConfig(mEglDisplay, configAttrs, configs, 1, 159 eglTerminate(mEglDisplay); 166 eglTerminate(mEglDisplay); 173 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT, 182 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], 190 if (!eglMakeCurrent(mEglDisplay, mEglSurfac 226 EGLDisplay mEglDisplay; member in class:Hwc2TestEglManager [all...] |
/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 167 mEglDisplay(EGL_NO_DISPLAY), 196 mEglDisplay(EGL_NO_DISPLAY), 299 err = syncForReleaseLocked(mEglDisplay); 309 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); 414 mEglDisplay, EGL_NO_SYNC_KHR); 422 mEglDisplay, EGL_NO_SYNC_KHR); 431 err = mEglSlots[slot].mEglImage->createIfNeeded(mEglDisplay, item.mCrop); 434 mEglDisplay, slot); 436 mEglDisplay, EGL_NO_SYNC_KHR); 442 err = syncForReleaseLocked(mEglDisplay); [all...] |
/frameworks/native/include/gui/ |
H A D | BufferSlot.h | 178 mEglDisplay(EGL_NO_DISPLAY), 192 // mEglDisplay is the EGLDisplay used to create EGLSyncKHR objects. 193 EGLDisplay mEglDisplay; member in struct:android::BufferSlot
|
H A D | GLConsumer.h | 267 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence); 298 // to mEglDisplay and mEglContext. If the fields have been previously 351 EGLDisplay mEglDisplay; member in class:android::GLConsumer::EglImage 473 // mEglDisplay is the EGLDisplay with which this GLConsumer is currently 477 EGLDisplay mEglDisplay; member in class:android::GLConsumer
|
/frameworks/av/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 52 mEglDisplay(EGL_NO_DISPLAY), 59 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 61 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 65 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 71 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 103 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 112 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 118 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 123 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 128 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurfac 336 EGLDisplay mEglDisplay; member in class:android::GLTest [all...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/ |
H A D | ImageFlipRenderThread.java | 95 private EGLDisplay mEglDisplay; field in class:ImageFlipRenderThread 191 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 300 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 301 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 307 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 317 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 318 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 324 if (!mEgl.eglInitialize(mEglDisplay, version)) { 334 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 336 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfi [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | ColorFade.java | 88 private EGLDisplay mEglDisplay; field in class:ColorFade 405 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); 518 if (mEglDisplay == null) { 519 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); 520 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) { 526 if (!EGL14.eglInitialize(mEglDisplay, version, 0, version, 1)) { 527 mEglDisplay = null; 545 if (!EGL14.eglChooseConfig(mEglDisplay, eglConfigAttribList, 0, 563 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, 617 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfi [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 121 private EGLDisplay mEglDisplay; field in class:ImageWallpaper.DrawableEngine 643 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 758 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 759 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 760 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 761 mEgl.eglTerminate(mEglDisplay); 767 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY); 768 if (mEglDisplay == EGL_NO_DISPLAY) { 774 if (!mEgl.eglInitialize(mEglDisplay, version)) { 784 mEglContext = createContext(mEgl, mEglDisplay, mEglConfi [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLSurfaceView.java | 1035 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 1037 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 1045 if(!mEgl.eglInitialize(mEglDisplay, version)) { 1053 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); 1059 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); 1088 if (mEglDisplay == null) { 1107 mEglDisplay, mEglConfig, view.getHolder()); 1124 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 1169 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 1184 mEgl.eglMakeCurrent(mEglDisplay, EGL1 1235 EGLDisplay mEglDisplay; field in class:GLSurfaceView.EglHelper [all...] |