Home
last modified time | relevance | path

Searched refs:mEglContext (Results 1 – 20 of 20) sorted by relevance

/frameworks/av/cmds/screenrecord/
DEglWindow.cpp92 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()
DEglWindow.h36 mEglContext(EGL_NO_CONTEXT), in EglWindow()
76 EGLContext mEglContext; variable
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java112 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/
DBufferGenerator.cpp99 : 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/
DEGLConsumer.cpp86 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/
DGLTextureViewActivity.java143 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()
DSingleFrameTextureViewTestActivity.java87 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/
DGLTest.h41 mEglContext(EGL_NO_CONTEXT), in GLTest()
66 EGLContext mEglContext; variable
DSurfaceTextureClient_test.cpp38 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 …]
DSurfaceTextureGLToGL_test.cpp120 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()
DGLTest.cpp92 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()
DSurfaceTextureMultiContextGL.h63 mEglContext)); in SetUp()
/frameworks/native/libs/gui/
DGLConsumer.cpp121 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/
DImageFlipRenderThread.java97 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/
DGLSurfaceView.java1052 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/
DColorFade.java101 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/
DEglManager.cpp94 , 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()
DEglManager.h105 EGLContext mEglContext; variable
/frameworks/native/libs/nativedisplay/include/surfacetexture/
DEGLConsumer.h283 EGLContext mEglContext; variable
/frameworks/native/libs/gui/include/gui/
DGLConsumer.h472 EGLContext mEglContext; variable