/frameworks/av/cmds/screenrecord/ |
D | EglWindow.cpp | 92 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent() 148 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in eglSetupContext() 150 if (mEglContext == EGL_NO_CONTEXT) { in eglSetupContext() 164 if (mEglContext != EGL_NO_CONTEXT) { in eglRelease() 165 eglDestroyContext(mEglDisplay, mEglContext); in eglRelease() 174 mEglContext = EGL_NO_CONTEXT; in eglRelease()
|
D | EglWindow.h | 36 mEglContext(EGL_NO_CONTEXT), in EglWindow() 76 EGLContext mEglContext; variable
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | BlockingGLTextureView.java | 112 EGLContext mEglContext; field in BlockingGLTextureView.EglHelper 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in start() 178 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { in start() 179 mEglContext = null; in start() 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 249 return (GL10) mEglContext.getGL(); in createGL() 278 if (mEglContext != null) { in finish() 279 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finish() 280 mEglContext = null; in finish()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | BufferGenerator.cpp | 99 : mEglDisplay(EGL_NO_DISPLAY), mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT) {} in EglManager() 154 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT, attrs); in initialize() 155 if (mEglContext == EGL_NO_CONTEXT) { in initialize() 162 if (!eglQueryContext(mEglDisplay, mEglContext, EGL_CONTEXT_CLIENT_VERSION, &majorVersion)) { in initialize() 182 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize() 191 void makeCurrent() const { eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); } in makeCurrent() 199 if (mEglContext != EGL_NO_CONTEXT) eglDestroyContext(mEglDisplay, mEglContext); in cleanup() 209 EGLContext mEglContext; member in android::EglManager
|
/frameworks/native/libs/nativedisplay/surfacetexture/ |
D | EGLConsumer.cpp | 86 EGLConsumer::EGLConsumer() : mEglDisplay(EGL_NO_DISPLAY), mEglContext(EGL_NO_CONTEXT) {} in EGLConsumer() 382 if (mEglContext == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked() 383 mEglContext = ctx; in checkAndUpdateEglStateLocked() 392 if (mEglContext != ctx || ctx == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked() 398 mEglContext = ctx; in checkAndUpdateEglStateLocked() 411 if (mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) { in detachFromContext() 426 mEglContext = EGL_NO_CONTEXT; in detachFromContext() 460 mEglContext = ctx; in attachToContext() 551 if (mEglContext != ctx || mEglContext == EGL_NO_CONTEXT) { in doGLFenceWaitLocked()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GLTextureViewActivity.java | 143 private EGLContext mEglContext; field in GLTextureViewActivity.RenderThread 347 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL() 352 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || in checkCurrent() 354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent() 381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL() 395 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL() 400 mGL = mEglContext.getGL(); in initGL()
|
D | SingleFrameTextureViewTestActivity.java | 87 private EGLContext mEglContext; in onSurfaceTextureAvailable() 121 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in onSurfaceTextureAvailable() 145 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in onSurfaceTextureAvailable() 159 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in onSurfaceTextureAvailable()
|
/frameworks/native/libs/gui/tests/ |
D | GLTest.h | 41 mEglContext(EGL_NO_CONTEXT), in GLTest() 66 EGLContext mEglContext; variable
|
D | SurfaceTextureClient_test.cpp | 38 mEglContext(EGL_NO_CONTEXT), in SurfaceTextureClientTest() 82 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, nullptr); in SetUp() 84 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp() 86 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp() 96 eglDestroyContext(mEglDisplay, mEglContext); in TearDown() 121 EGLContext mEglContext; member in android::SurfaceTextureClientTest 189 EGLBoolean success = eglMakeCurrent(mEglDisplay, eglSurface, eglSurface, mEglContext); in TEST_F() 203 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in TEST_F() 709 mEglContext(EGL_NO_CONTEXT) { in MultiSurfaceTextureClientTest() 738 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, in SetUp() [all …]
|
D | SurfaceTextureGLToGL_test.cpp | 120 mEglContext)); in TEST_F() 179 mEglContext)); in TEST_F() 226 mEglContext)); in TEST_F() 371 mEglContext)); in TEST_F() 435 mEglContext)); in TEST_F() 499 mEglContext)); in TEST_F()
|
D | GLTest.cpp | 92 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp() 95 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp() 98 mEglContext)); in SetUp() 123 if (mEglContext != EGL_NO_CONTEXT) { in TearDown() 124 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
|
D | SurfaceTextureMultiContextGL.h | 63 mEglContext)); in SetUp()
|
/frameworks/native/libs/gui/ |
D | GLConsumer.cpp | 121 mEglContext(EGL_NO_CONTEXT), in GLConsumer() 150 mEglContext(EGL_NO_CONTEXT), in GLConsumer() 515 if (mEglContext == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked() 516 mEglContext = ctx; in checkAndUpdateEglStateLocked() 525 if (mEglContext != ctx || ctx == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked() 531 mEglContext = ctx; in checkAndUpdateEglStateLocked() 571 if (mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) { in detachFromContext() 586 mEglContext = EGL_NO_CONTEXT; in detachFromContext() 626 mEglContext = ctx; in attachToContext() 854 if (mEglContext != ctx || mEglContext == EGL_NO_CONTEXT) { in doGLFenceWaitLocked()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/ |
D | ImageFlipRenderThread.java | 97 private EGLContext mEglContext; field in ImageFlipRenderThread 300 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL() 305 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || in checkCurrent() 307 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent() 334 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL() 348 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLSurfaceView.java | 1052 mEglContext = null; in start() 1060 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start() 1062 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { in start() 1063 mEglContext = null; in start() 1067 … Log.w("EglHelper", "createContext " + mEglContext + " tid=" + Thread.currentThread().getId()); in start() 1125 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 1143 GL gl = mEglContext.getGL(); in createGL() 1200 if (mEglContext != null) { in finish() 1203 view.mEGLContextFactory.destroyContext(mEgl, mEglDisplay, mEglContext); in finish() 1205 mEglContext = null; in finish() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | ColorFade.java | 101 private EGLContext mEglContext; field in ColorFade 659 if (mEglContext != null && isProtected != mLastWasProtectedContent) { 660 EGL14.eglDestroyContext(mEglDisplay, mEglContext); 661 mEglContext = null; 664 if (mEglContext == null) { 674 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL14.EGL_NO_CONTEXT, 676 if (mEglContext == null) { 772 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
|
/frameworks/base/libs/hwui/renderthread/ |
D | EglManager.cpp | 94 , mEglContext(EGL_NO_CONTEXT) in EglManager() 367 mEglContext = eglCreateContext( in createContext() 370 LOG_ALWAYS_FATAL_IF(mEglContext == EGL_NO_CONTEXT, "Failed to create context, error = %s", in createContext() 511 eglDestroyContext(mEglDisplay, mEglContext); in destroy() 520 mEglContext = EGL_NO_CONTEXT; in destroy() 532 if (!eglMakeCurrent(mEglDisplay, surface, surface, mEglContext)) { in makeCurrent()
|
D | EglManager.h | 105 EGLContext mEglContext; variable
|
/frameworks/native/libs/nativedisplay/include/surfacetexture/ |
D | EGLConsumer.h | 283 EGLContext mEglContext; variable
|
/frameworks/native/libs/gui/include/gui/ |
D | GLConsumer.h | 472 EGLContext mEglContext; variable
|