Home
last modified time | relevance | path

Searched refs:mEglContext (Results 1 – 22 of 22) 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.cpp95 : mEglDisplay(EGL_NO_DISPLAY), mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT) {} in EglManager()
150 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT, attrs); in initialize()
151 if (mEglContext == EGL_NO_CONTEXT) { in initialize()
158 if (!eglQueryContext(mEglDisplay, mEglContext, EGL_CONTEXT_CLIENT_VERSION, &majorVersion)) { in initialize()
178 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
187 void makeCurrent() const { eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); } in makeCurrent()
195 if (mEglContext != EGL_NO_CONTEXT) eglDestroyContext(mEglDisplay, mEglContext); in cleanup()
205 EGLContext mEglContext; member in android::EglManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DEglHelper.java72 private EGLContext mEglContext; field in EglHelper
177 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createEglSurface()
219 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, attrib_list, 0); in createEglContext()
225 if (mEglContext == EGL_NO_CONTEXT) { in createEglContext()
237 eglDestroyContext(mEglDisplay, mEglContext); in destroyEglContext()
238 mEglContext = null; in destroyEglContext()
247 return mEglContext != null; in hasEglContext()
/frameworks/base/libs/hwui/surfacetexture/
DEGLConsumer.cpp85 EGLConsumer::EGLConsumer() : mEglDisplay(EGL_NO_DISPLAY), mEglContext(EGL_NO_CONTEXT) {} in EGLConsumer()
380 if (mEglContext == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked()
381 mEglContext = ctx; in checkAndUpdateEglStateLocked()
390 if (mEglContext != ctx || ctx == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked()
396 mEglContext = ctx; in checkAndUpdateEglStateLocked()
409 if (mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) { in detachFromContext()
424 mEglContext = EGL_NO_CONTEXT; in detachFromContext()
457 mEglContext = ctx; in attachToContext()
552 if (mEglContext != ctx || mEglContext == EGL_NO_CONTEXT) { in doGLFenceWaitLocked()
DEGLConsumer.h285 EGLContext mEglContext; variable
/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/
DGLConsumer.cpp122 mEglContext(EGL_NO_CONTEXT), in GLConsumer()
151 mEglContext(EGL_NO_CONTEXT), in GLConsumer()
516 if (mEglContext == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked()
517 mEglContext = ctx; in checkAndUpdateEglStateLocked()
526 if (mEglContext != ctx || ctx == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked()
532 mEglContext = ctx; in checkAndUpdateEglStateLocked()
572 if (mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) { in detachFromContext()
587 mEglContext = EGL_NO_CONTEXT; in detachFromContext()
627 mEglContext = ctx; in attachToContext()
855 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/native/libs/gui/tests/
DGLTest.h41 mEglContext(EGL_NO_CONTEXT), in GLTest()
66 EGLContext mEglContext; variable
DSurfaceTextureClient_test.cpp40 mEglContext(EGL_NO_CONTEXT), in SurfaceTextureClientTest()
84 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, nullptr); in SetUp()
86 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp()
88 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
98 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
123 EGLContext mEglContext; member in android::SurfaceTextureClientTest
191 EGLBoolean success = eglMakeCurrent(mEglDisplay, eglSurface, eglSurface, mEglContext); in TEST_F()
205 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in TEST_F()
711 mEglContext(EGL_NO_CONTEXT) { in MultiSurfaceTextureClientTest()
740 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/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/native/services/surfaceflinger/tests/hwc2/
DHwc2TestBuffer.cpp121 mEglContext(EGL_NO_CONTEXT) { } in Hwc2TestEglManager()
176 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT, in initialize()
178 if (mEglContext == EGL_NO_CONTEXT) { in initialize()
193 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
204 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in makeCurrent()
219 if (mEglContext != EGL_NO_CONTEXT) in cleanup()
220 eglDestroyContext(mEglDisplay, mEglContext); in cleanup()
231 EGLContext mEglContext; member in Hwc2TestEglManager
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp90 , mEglContext(EGL_NO_CONTEXT) in EglManager()
278 mEglContext = eglCreateContext( in createContext()
281 LOG_ALWAYS_FATAL_IF(mEglContext == EGL_NO_CONTEXT, "Failed to create context, error = %s", in createContext()
373 eglDestroyContext(mEglDisplay, mEglContext); in destroy()
382 mEglContext = EGL_NO_CONTEXT; in destroy()
394 if (!eglMakeCurrent(mEglDisplay, surface, surface, mEglContext)) { in makeCurrent()
DEglManager.h102 EGLContext mEglContext; variable
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java96 private EGLContext mEglContext; field in ColorFade
566 if (mEglContext == null) {
571 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig,
573 if (mEglContext == null) {
680 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/frameworks/native/libs/gui/include/gui/
DGLConsumer.h472 EGLContext mEglContext; variable