Home
last modified time | relevance | path

Searched refs:EGL_NO_CONTEXT (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/native/libs/gui/tests/
DSurfaceTextureMultiContextGL.h30 mSecondEglContext(EGL_NO_CONTEXT), in SurfaceTextureMultiContextGLTest()
31 mThirdEglContext(EGL_NO_CONTEXT) { in SurfaceTextureMultiContextGLTest()
39 EGL_NO_CONTEXT, getContextAttribs()); in SetUp()
41 ASSERT_NE(EGL_NO_CONTEXT, mSecondEglContext); in SetUp()
51 EGL_NO_CONTEXT, getContextAttribs()); in SetUp()
53 ASSERT_NE(EGL_NO_CONTEXT, mThirdEglContext); in SetUp()
67 if (mThirdEglContext != EGL_NO_CONTEXT) { in TearDown()
70 if (mSecondEglContext != EGL_NO_CONTEXT) { in TearDown()
DSurfaceTextureGLToGL.h32 mProducerEglContext(EGL_NO_CONTEXT) { in SurfaceTextureGLToGLTest()
46 EGL_NO_CONTEXT, getContextAttribs()); in SetUpWindowAndContext()
48 ASSERT_NE(EGL_NO_CONTEXT, mProducerEglContext); in SetUpWindowAndContext()
52 if (mProducerEglContext != EGL_NO_CONTEXT) { in TearDown()
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()
95 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TearDown()
532 eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TEST_F()
541 eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TEST_F()
709 mEglContext(EGL_NO_CONTEXT) { in MultiSurfaceTextureClientTest()
711 mEglSurfaces[i] = EGL_NO_CONTEXT; in MultiSurfaceTextureClientTest()
738 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, in SetUp()
741 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp()
[all …]
DGLTest.cpp92 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp()
95 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp()
123 if (mEglContext != EGL_NO_CONTEXT) { in TearDown()
131 EGL_NO_CONTEXT); in TearDown()
DSurfaceTextureMultiContextGL_test.cpp113 EGL_NO_CONTEXT)); in TEST_F()
295 EGL_NO_CONTEXT)); in TEST_F()
446 EGL_NO_CONTEXT, getContextAttribs()); in TEST_F()
448 ASSERT_NE(EGL_NO_CONTEXT, mSecondEglContext); in TEST_F()
/frameworks/av/cmds/screenrecord/
DEglWindow.cpp148 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in eglSetupContext()
150 if (mEglContext == EGL_NO_CONTEXT) { in eglSetupContext()
162 EGL_NO_CONTEXT); in eglRelease()
164 if (mEglContext != EGL_NO_CONTEXT) { in eglRelease()
174 mEglContext = EGL_NO_CONTEXT; in eglRelease()
DEglWindow.h36 mEglContext(EGL_NO_CONTEXT), in EglWindow()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DGLHelper.java28 import static android.opengl.EGL14.EGL_NO_CONTEXT;
115 eglDisplay, eglConfig, EGL_NO_CONTEXT, attr_list, 0 /* offset */); in retrieveTextureSizeFromGL()
117 if (eglContext == null || eglContext == EGL_NO_CONTEXT) { in retrieveTextureSizeFromGL()
133 eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in retrieveTextureSizeFromGL()
/frameworks/native/cmds/flatland/
DGLHelper.cpp28 mContext(EGL_NO_CONTEXT), in GLHelper()
76 mContext = eglCreateContext(mDisplay, mConfig, EGL_NO_CONTEXT, in setUp()
78 if (mContext == EGL_NO_CONTEXT) { in setUp()
115 EGL_NO_CONTEXT); in tearDown()
118 if (mContext != EGL_NO_CONTEXT) { in tearDown()
127 mContext = EGL_NO_CONTEXT; in tearDown()
171 EGL_NO_CONTEXT); in destroySurface()
/frameworks/base/media/mca/filterfw/native/core/
Dgl_env.cpp89 eglMakeCurrent(display(), EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in Deactivate()
99 if (context() == EGL_NO_CONTEXT || surface() == EGL_NO_SURFACE) in Activate()
124 return (context() != EGL_NO_CONTEXT) && in InitWithCurrentContext()
182 EGL_NO_CONTEXT, in InitWithNewContext()
203 return eglGetCurrentContext() != EGL_NO_CONTEXT; in IsAnyContextActive()
/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()
392 if (mEglContext != ctx || ctx == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked()
411 if (mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) { in detachFromContext()
416 if (dpy != EGL_NO_DISPLAY && ctx != EGL_NO_CONTEXT) { in detachFromContext()
426 mEglContext = EGL_NO_CONTEXT; in detachFromContext()
450 if (ctx == EGL_NO_CONTEXT) { in attachToContext()
551 if (mEglContext != ctx || mEglContext == EGL_NO_CONTEXT) { in doGLFenceWaitLocked()
665 eglCreateImageKHR(dpy, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, cbuf, attrs); in createImage()
/frameworks/native/opengl/libs/EGL/
Degl.cpp73 if (context == EGL_NO_CONTEXT) return nullptr; in egl_get_string_for_current_context()
89 if (context == EGL_NO_CONTEXT) return nullptr; in egl_get_string_for_current_context()
109 if (context == EGL_NO_CONTEXT) return -1; in egl_get_num_extensions_for_current_context()
Degl_tls.cpp172 return EGL_NO_CONTEXT; in getContext()
175 if (!tls) return EGL_NO_CONTEXT; in getContext()
/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()
199 if (mEglContext != EGL_NO_CONTEXT) eglDestroyContext(mEglDisplay, mEglContext); in cleanup()
201 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in cleanup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DEglHelper.java28 import static android.opengl.EGL14.EGL_NO_CONTEXT;
247 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in destroyEglSurface()
280 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, attrib_list, 0); in createEglContext()
303 mEglContext = EGL_NO_CONTEXT; in destroyEglContext()
312 return mEglContext != null && mEglContext != EGL_NO_CONTEXT; in hasEglContext()
/frameworks/native/opengl/tests/gl_perf/
Dgl2_perf.cpp99 context = eglCreateContext(dpy, myConfig, EGL_NO_CONTEXT, context_attribs); in main()
101 if (context == EGL_NO_CONTEXT) { in main()
/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()
525 if (mEglContext != ctx || ctx == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked()
571 if (mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) { in detachFromContext()
576 if (dpy != EGL_NO_DISPLAY && ctx != EGL_NO_CONTEXT) { in detachFromContext()
586 mEglContext = EGL_NO_CONTEXT; in detachFromContext()
616 if (ctx == EGL_NO_CONTEXT) { in attachToContext()
854 if (mEglContext != ctx || mEglContext == EGL_NO_CONTEXT) { in doGLFenceWaitLocked()
1005 EGLImageKHR image = eglCreateImageKHR(dpy, EGL_NO_CONTEXT, in createImage()
/frameworks/native/opengl/tests/angeles/include/GLES/
Degltypes.h18 #define EGL_NO_CONTEXT ((EGLContext)0) macro
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DRenderTarget.java228 EGL10.EGL_NO_CONTEXT); in focusNone()
243 return current != null ? current.getContext() : EGL10.EGL_NO_CONTEXT; in currentContext()
249 mContext = EGL10.EGL_NO_CONTEXT; in release()
385 EGLContext ctxt = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
410 if (context == EGL10.EGL_NO_CONTEXT) { in checkContext()
/frameworks/native/opengl/tools/glgen/stubs/egl/
DEGL14cHeader.cpp84 …= _env->NewObject(eglcontextClass, eglcontextConstructor, reinterpret_cast<jlong>(EGL_NO_CONTEXT)); in nativeClassInit()
118 (EGLContext)handle == EGL_NO_CONTEXT) { in toEGLHandle()
/frameworks/native/opengl/tests/gl_yuvtex/
Dgl_yuvtex.cpp131 EGLImageKHR img = eglCreateImageKHR(dpy, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, in setupYuvTexSurface()
277 context = eglCreateContext(dpy, myConfig, EGL_NO_CONTEXT, context_attribs); in main()
279 if (context == EGL_NO_CONTEXT) { in main()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java142 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attribList); in createContext()
178 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { in start()
271 EGL10.EGL_NO_CONTEXT); in destroySurfaceImp()
/frameworks/native/opengl/specs/
DEGL_ANDROID_image_native_buffer.txt77 <ctx> must be EGL_NO_CONTEXT, <buffer> must be a pointer to a valid
88 EGL_NO_CONTEXT, the error EGL_BAD_CONTEXT is generated.
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp92 , mEglContext(EGL_NO_CONTEXT) in EglManager()
319 EGL_NO_CONTEXT, contextAttributes.data()); in createContext()
320 LOG_ALWAYS_FATAL_IF(mEglContext == EGL_NO_CONTEXT, "Failed to create context, error = %s", in createContext()
442 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in destroy()
447 mEglContext = EGL_NO_CONTEXT; in destroy()
/frameworks/native/opengl/tests/gl2_yuvtex/
Dgl2_yuvtex.cpp236 EGLImageKHR img = eglCreateImageKHR(dpy, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, in setupYuvTexSurface()
387 context = eglCreateContext(dpy, myConfig, EGL_NO_CONTEXT, context_attribs); in main()
389 if (context == EGL_NO_CONTEXT) { in main()

123