/frameworks/av/cmds/screenrecord/ |
D | EglWindow.cpp | 38 if (mEglSurface != EGL_NO_SURFACE) { in createWindow() 53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow() 55 if (mEglSurface == EGL_NO_SURFACE) { in createWindow() 65 if (mEglSurface != EGL_NO_SURFACE) { in createPbuffer() 82 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); in createPbuffer() 83 if (mEglSurface == EGL_NO_SURFACE) { in createPbuffer() 93 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent() 169 if (mEglSurface != EGL_NO_SURFACE) { in eglRelease() 170 eglDestroySurface(mEglDisplay, mEglSurface); in eglRelease() 176 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 | 36 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 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() 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() 340 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 380 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() [all …]
|
D | SurfaceTextureMultiContextGL.h | 42 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 54 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 61 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
|
D | SRGB_test.cpp | 52 mEglContext(EGL_NO_CONTEXT), mEglSurface(EGL_NO_SURFACE), in SRGBTest() 58 if (mEglSurface != EGL_NO_SURFACE) { in ~SRGBTest() 59 eglDestroySurface(mEglDisplay, mEglSurface); in ~SRGBTest() 234 EGLSurface mEglSurface; member in android::SRGBTest 274 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, in createEGLSurface() 277 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in createEGLSurface() 279 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in createEGLSurface() 376 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F() 407 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F() 439 EXPECT_TRUE(eglDestroySurface(mEglDisplay, mEglSurface)); in TEST_F() [all …]
|
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 | 113 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 171 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 217 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 352 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 413 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F() 474 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
|
D | GLTest.h | 39 mEglSurface(EGL_NO_SURFACE), in GLTest() 63 EGLSurface mEglSurface; variable
|
D | SurfaceTextureClient_test.cpp | 36 mEglSurface(EGL_NO_SURFACE), in SurfaceTextureClientTest() 76 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp() 78 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp() 84 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp() 95 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown() 118 EGLSurface mEglSurface; member in android::SurfaceTextureClientTest 201 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in TEST_F()
|
D | SurfaceTextureGLThreadToGL_test.cpp | 169 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
|
/frameworks/av/media/libstagefright/tests/ |
D | SurfaceMediaSource_test.cpp | 57 mEglSurface(EGL_NO_SURFACE), in GLTest() 107 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp() 116 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp() 120 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp() 127 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp() 132 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp() 134 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp() 145 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown() 146 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown() 156 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/libs/hwui/renderthread/ |
D | CanvasContext.cpp | 44 , mEglSurface(EGL_NO_SURFACE) in CanvasContext() 78 if (mEglSurface != EGL_NO_SURFACE) { in setSurface() 79 mEglManager.destroySurface(mEglSurface); in setSurface() 80 mEglSurface = EGL_NO_SURFACE; in setSurface() 84 mEglSurface = mEglManager.createSurface(window); in setSurface() 87 if (mEglSurface != EGL_NO_SURFACE) { in setSurface() 89 mBufferPreserved = mEglManager.setPreserveBuffer(mEglSurface, preserveBuffer); in setSurface() 98 if (CC_UNLIKELY(!mEglManager.swapBuffers(mEglSurface))) { in swapBuffers() 105 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, in requireSurface() 144 mHaveNewSurface |= mEglManager.makeCurrent(mEglSurface); in makeCurrent() [all …]
|
D | CanvasContext.h | 123 EGLSurface mEglSurface; variable
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
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/services/core/java/com/android/server/display/ |
D | ColorFade.java | 93 private EGLSurface mEglSurface; field in ColorFade 387 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw() 589 if (mEglSurface == null) { 594 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, 596 if (mEglSurface == null) { 605 if (mEglSurface != null) { 606 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) { 609 mEglSurface = null; 647 if (mEglSurface == null) { 650 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLSurfaceView.java | 1039 mEglSurface = null; in start() 1076 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface() 1079 mEglSurface = null; in createSurface() 1082 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface() 1094 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 1139 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap() 1153 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp() 1159 view.mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in destroySurfaceImp() 1161 mEglSurface = null; in destroySurfaceImp() 1206 EGLSurface mEglSurface; field in GLSurfaceView.EglHelper
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ImageWallpaper.java | 126 private EGLSurface mEglSurface; field in ImageWallpaper.DrawableEngine 533 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL() 649 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 704 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null); in initGL() 705 if (mEglSurface == null || mEglSurface == EGL_NO_SURFACE) { in initGL() 716 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
|