/frameworks/av/cmds/screenrecord/ |
D | EglWindow.cpp | 37 if (mEglSurface != EGL_NO_SURFACE) { in createWindow() 52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow() 54 if (mEglSurface == EGL_NO_SURFACE) { in createWindow() 64 if (mEglSurface != EGL_NO_SURFACE) { in createPbuffer() 81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); in createPbuffer() 82 if (mEglSurface == EGL_NO_SURFACE) { in createPbuffer() 92 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent() 168 if (mEglSurface != EGL_NO_SURFACE) { in eglRelease() 169 eglDestroySurface(mEglDisplay, mEglSurface); in eglRelease() 175 mEglSurface = EGL_NO_SURFACE; in eglRelease() [all …]
|
D | EglWindow.h | 37 mEglSurface(EGL_NO_SURFACE), in EglWindow() 77 EGLSurface mEglSurface; variable
|
/frameworks/native/libs/gui/tests/ |
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() 357 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 397 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() [all …]
|
D | SurfaceTextureMultiContextGL.h | 43 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 55 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 62 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
|
D | GLTest.cpp | 77 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window); in SetUp() 84 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp() 88 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); 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() 113 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown() 114 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown() 124 if (mEglSurface != EGL_NO_SURFACE) { in TearDown() 125 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown()
|
D | SurfaceTextureGLToGL_test.cpp | 119 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 178 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 225 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 370 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 434 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 498 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
|
D | GLTest.h | 40 mEglSurface(EGL_NO_SURFACE), in GLTest() 65 EGLSurface mEglSurface; variable
|
D | SurfaceTextureClient_test.cpp | 40 mEglSurface(EGL_NO_SURFACE), in SurfaceTextureClientTest() 81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp() 83 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp() 89 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp() 100 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown() 123 EGLSurface mEglSurface; member in android::SurfaceTextureClientTest 206 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in TEST_F()
|
D | SurfaceTextureGLThreadToGL_test.cpp | 177 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
|
/frameworks/av/media/libstagefright/tests/ |
D | SurfaceMediaSource_test.cpp | 53 mEglSurface(EGL_NO_SURFACE), in GLTest() 103 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp() 112 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp() 116 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp() 123 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 128 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp() 130 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp() 141 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown() 142 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown() 152 if (mEglSurface != EGL_NO_SURFACE) { in TearDown() [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | BlockingGLTextureView.java | 110 EGLSurface mEglSurface; field in BlockingGLTextureView.EglHelper 183 mEglSurface = null; in start() 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in createSurface() 218 mEglSurface = null; in createSurface() 221 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface() 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap() 268 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp() 272 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in destroySurfaceImp() 273 mEglSurface = null; in destroySurfaceImp()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | SingleFrameTextureViewTestActivity.java | 88 private EGLSurface mEglSurface; in onSurfaceTextureAvailable() 105 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in onSurfaceTextureAvailable() 122 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in onSurfaceTextureAvailable() 147 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in onSurfaceTextureAvailable() 149 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in onSurfaceTextureAvailable() 159 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in onSurfaceTextureAvailable()
|
D | GLTextureViewActivity.java | 144 private EGLSurface mEglSurface; field in GLTextureViewActivity.RenderThread 238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run() 348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 353 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { in checkCurrent() 354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent() 383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL() 385 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in initGL() 395 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaOpenGLPipeline.cpp | 50 if (!mEglManager.makeCurrent(mEglSurface, &error)) { in makeCurrent() 57 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, in getFrame() 59 return mEglManager.beginFrame(mEglSurface); in getFrame() 154 if (mEglManager.isCurrent(mEglSurface)) { in onStop() 162 if (mEglSurface != EGL_NO_SURFACE) { in setSurface() 163 mEglManager.destroySurface(mEglSurface); in setSurface() 164 mEglSurface = EGL_NO_SURFACE; in setSurface() 169 mEglSurface = mEglManager.createSurface(surface, wideColorGamut); in setSurface() 172 if (mEglSurface != EGL_NO_SURFACE) { in setSurface() 174 mBufferPreserved = mEglManager.setPreserveBuffer(mEglSurface, preserveBuffer); in setSurface() [all …]
|
D | SkiaOpenGLPipeline.h | 58 EGLSurface mEglSurface = EGL_NO_SURFACE; variable
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/ |
D | ImageFlipRenderThread.java | 98 private EGLSurface mEglSurface; field in ImageFlipRenderThread 191 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run() 301 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 306 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { in checkCurrent() 307 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent() 336 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL() 338 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in initGL() 348 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
|
/frameworks/base/libs/hwui/renderthread/ |
D | OpenGLPipeline.cpp | 43 bool haveNewSurface = mEglManager.makeCurrent(mEglSurface, &error); in makeCurrent() 53 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, in getFrame() 55 return mEglManager.beginFrame(mEglSurface); in getFrame() 144 if (mEglManager.isCurrent(mEglSurface)) { in onStop() 151 if (mEglSurface != EGL_NO_SURFACE) { in setSurface() 152 mEglManager.destroySurface(mEglSurface); in setSurface() 153 mEglSurface = EGL_NO_SURFACE; in setSurface() 158 mEglSurface = mEglManager.createSurface(surface, wideColorGamut); in setSurface() 161 if (mEglSurface != EGL_NO_SURFACE) { in setSurface() 163 mBufferPreserved = mEglManager.setPreserveBuffer(mEglSurface, preserveBuffer); in setSurface() [all …]
|
D | OpenGLPipeline.h | 69 EGLSurface mEglSurface = EGL_NO_SURFACE; variable
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestBuffer.cpp | 117 mEglSurface(EGL_NO_SURFACE), in Hwc2TestEglManager() 182 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], in initialize() 184 if (mEglSurface == EGL_NO_SURFACE) { in initialize() 190 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize() 201 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in makeCurrent() 206 eglSwapBuffers(mEglDisplay, mEglSurface); in present() 214 if (mEglSurface != EGL_NO_SURFACE) in cleanup() 215 eglDestroySurface(mEglDisplay, mEglSurface); in cleanup() 227 EGLSurface mEglSurface; member in Hwc2TestEglManager
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | ColorFade.java | 91 private EGLSurface mEglSurface; field in ColorFade 405 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw() 612 if (mEglSurface == null) { 617 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, 619 if (mEglSurface == null) { 628 if (mEglSurface != null) { 629 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) { 632 mEglSurface = null; 670 if (mEglSurface == null) { 673 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLSurfaceView.java | 1069 mEglSurface = null; in start() 1106 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface() 1109 mEglSurface = null; in createSurface() 1112 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface() 1124 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 1169 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap() 1183 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp() 1189 view.mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in destroySurfaceImp() 1191 mEglSurface = null; in destroySurfaceImp() 1236 EGLSurface mEglSurface; field in GLSurfaceView.EglHelper
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ImageWallpaper.java | 124 private EGLSurface mEglSurface; field in ImageWallpaper.DrawableEngine 611 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL() 652 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL() 768 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 823 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null); in initGL() 824 if (mEglSurface == null || mEglSurface == EGL_NO_SURFACE) { in initGL() 835 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
|