Home
last modified time | relevance | path

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

/frameworks/av/services/camera/virtualcamera/util/
DEglDisplayContext.cc36 mEglContext(EGL_NO_CONTEXT), in EglDisplayContext()
71 mEglContext = in EglDisplayContext()
73 if (mEglContext == EGL_NO_CONTEXT) { in EglDisplayContext()
100 if (mEglContext != EGL_NO_CONTEXT) { in ~EglDisplayContext()
101 eglDestroyContext(mEglDisplay, mEglContext); in ~EglDisplayContext()
113 return mEglContext != EGL_NO_CONTEXT && mEglDisplay != EGL_NO_DISPLAY; in isInitialized()
123 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent()
DEglDisplayContext.h57 EGLContext mEglContext; variable
/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.cpp100 : mEglDisplay(EGL_NO_DISPLAY), mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT) {} in EglManager()
155 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT, attrs); in initialize()
156 if (mEglContext == EGL_NO_CONTEXT) { in initialize()
163 if (!eglQueryContext(mEglDisplay, mEglContext, EGL_CONTEXT_CLIENT_VERSION, &majorVersion)) { in initialize()
183 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
192 void makeCurrent() const { eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); } in makeCurrent()
200 if (mEglContext != EGL_NO_CONTEXT) eglDestroyContext(mEglDisplay, mEglContext); in cleanup()
210 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/graphics/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()
77 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, nullptr); in SetUp()
79 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp()
81 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
91 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
111 EGLContext mEglContext; member in android::SurfaceTextureClientTest
179 EGLBoolean success = eglMakeCurrent(mEglDisplay, eglSurface, eglSurface, mEglContext); in TEST_F()
193 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in TEST_F()
699 mEglContext(EGL_NO_CONTEXT) { in MultiSurfaceTextureClientTest()
728 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.cpp88 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp()
91 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp()
94 mEglContext)); in SetUp()
119 if (mEglContext != EGL_NO_CONTEXT) { in TearDown()
120 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.java105 private EGLContext mEglContext; field in ColorFade
696 if (mEglContext != null && isProtected != mLastWasProtectedContent) {
697 EGL14.eglDestroyContext(mEglDisplay, mEglContext);
698 mEglContext = null;
701 if (mEglContext == null) {
711 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL14.EGL_NO_CONTEXT,
713 if (mEglContext == null) {
809 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
824 if (mEglDisplay != null && mEglContext != null) {
825 EGL14.eglDestroyContext(mEglDisplay, mEglContext);
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp97 , mEglContext(EGL_NO_CONTEXT) in EglManager()
370 mEglContext = eglCreateContext( in createContext()
373 LOG_ALWAYS_FATAL_IF(mEglContext == EGL_NO_CONTEXT, "Failed to create context, error = %s", in createContext()
535 eglDestroyContext(mEglDisplay, mEglContext); in destroy()
544 mEglContext = EGL_NO_CONTEXT; in destroy()
556 if (!eglMakeCurrent(mEglDisplay, surface, surface, mEglContext)) { in makeCurrent()
DEglManager.h106 EGLContext mEglContext; variable
/frameworks/native/libs/nativedisplay/include/surfacetexture/
DEGLConsumer.h283 EGLContext mEglContext; variable
/frameworks/native/libs/gui/include/gui/
DGLConsumer.h476 EGLContext mEglContext; variable