/cts/tests/tests/opengl/src/android/opengl/cts/ |
EglContextTest.java | 20 import android.opengl.EGLContext; 40 EGLContext eglContext = null; 43 eglContext = Egl14Utils.createEglContext(eglDisplay); 44 Egl14Utils.destroyEglContext(eglDisplay, eglContext); 47 eglContext = null; 50 if (eglContext != null) { 51 EGL14.eglDestroyContext(eglDisplay, eglContext);
|
Egl14Utils.java | 21 import android.opengl.EGLContext; 79 static EGLContext createEglContext(EGLDisplay eglDisplay) { 86 static EGLContext createEglContext(EGLDisplay eglDisplay, EGLConfig eglConfig, int version) { 93 * Destroys the GL context identified by {@code eglDisplay} and {@code eglContext}. 95 static void destroyEglContext(EGLDisplay eglDisplay, EGLContext eglContext) { 105 EGL14.eglDestroyContext(eglDisplay, eglContext);
|
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
EglBase10.java | 38 import javax.microedition.khronos.egl.EGLContext; 43 * Holds EGL state and utility methods for handling an egl 1.0 EGLContext, an EGLDisplay, 51 private EGLContext eglContext; 56 // EGL wrapper for an actual EGLContext. 58 private final EGLContext eglContext; 60 public Context(EGLContext eglContext) { 61 this.eglContext = eglContext [all...] |
EglBase14.java | 34 import android.opengl.EGLContext; 43 * Holds EGL state and utility methods for handling an EGL14 EGLContext, an EGLDisplay, 51 private EGLContext eglContext; 65 private final android.opengl.EGLContext egl14Context; 67 Context(android.opengl.EGLContext eglContext) { 68 this.egl14Context = eglContext; 77 eglContext = createEglContext(sharedContext, eglDisplay, eglConfig); 128 return new EglBase14.Context(eglContext); [all...] |
VideoRendererGui.java | 35 import javax.microedition.khronos.egl.EGLContext; 56 // |instance|, |instance.surface|, |eglContext|, and |eglContextReady| are synchronized on 62 private static EglBase.Context eglContext = null; 97 // currently leaking resources to avoid a rare crash in release() where the EGLContext has 422 return eglContext; 440 eglContext = null; 612 eglContext = new EglBase14.Context(EGL14.eglGetCurrentContext()); 614 eglContext = new EglBase10.Context(((EGL10) EGLContext.getEGL()).eglGetCurrentContext()); 617 Logging.d(TAG, "VideoRendererGui EGL Context: " + eglContext); [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
HardwareBufferTest.java | 22 import android.opengl.EGLContext; 59 EGLContext eglContext = null; 64 eglContext = Egl14Utils.createEglContext(eglDisplay, eglConfig, 2); 71 EGL14.eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext); 80 Egl14Utils.destroyEglContext(eglDisplay, eglContext); 84 eglContext = null; 88 if (eglContext != null) { 89 EGL14.eglDestroyContext(eglDisplay, eglContext);
|
Egl14Utils.java | 21 import android.opengl.EGLContext; 57 static EGLContext createEglContext(EGLDisplay eglDisplay) { 64 static EGLContext createEglContext(EGLDisplay eglDisplay, EGLConfig eglConfig, int version) { 71 * Destroys the GL context identified by {@code eglDisplay} and {@code eglContext}. 73 static void destroyEglContext(EGLDisplay eglDisplay, EGLContext eglContext) { 83 EGL14.eglDestroyContext(eglDisplay, eglContext);
|
/hardware/qcom/display/msm8998/gpu_tonemapper/ |
glengine.cpp | 30 EGLContext eglContext; 35 eglContext = EGL_NO_CONTEXT; 46 EGL(eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, engineContext->eglContext)); 56 callerContext->eglContext = eglGetCurrentContext(); 101 engineContext->eglContext = eglCreateContext(engineContext->eglDisplay, eglConfig, NULL, eglContextAttribList); 111 eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, engineContext->eglContext); 113 ALOGI("In %s context = %p", __FUNCTION__, (void *)(engineContext->eglContext)); 126 EGL(eglDestroyContext(engineContext->eglDisplay, engineContext->eglContext)); 129 engineContext->eglContext = EGL_NO_CONTEXT [all...] |
/hardware/qcom/display/sdm845/gpu_tonemapper/ |
glengine.cpp | 30 EGLContext eglContext; 35 eglContext = EGL_NO_CONTEXT; 46 EGL(eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, engineContext->eglContext)); 56 callerContext->eglContext = eglGetCurrentContext(); 101 engineContext->eglContext = eglCreateContext(engineContext->eglDisplay, eglConfig, NULL, eglContextAttribList); 111 eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, engineContext->eglContext); 113 ALOGI("In %s context = %p", __FUNCTION__, (void *)(engineContext->eglContext)); 126 EGL(eglDestroyContext(engineContext->eglDisplay, engineContext->eglContext)); 129 engineContext->eglContext = EGL_NO_CONTEXT [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
NdkInputSurface.java | 37 static private native boolean eglMakeCurrent(long eglDisplay, long eglSurface, long eglContext); 43 static private native void nativeRelease(long eglDisplay, long eglSurface, long eglContext, long nativeWindow);
|
DecodeAccuracyTestBase.java | 80 import javax.microedition.khronos.egl.EGLContext; [all...] |
/frameworks/native/opengl/tests/tritex/ |
tritex.cpp | 22 EGLContext eglContext;
154 if ( (eglContext = eglCreateContext(eglDisplay, myConfig, 0, 0)) == EGL_NO_CONTEXT )
160 if ( eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext) != EGL_TRUE )
175 eglDestroyContext( eglDisplay, eglContext );
|
/external/swiftshader/third_party/PowerVR_SDK/Examples/Beginner/01_HelloAPI/OGLES2/ |
OGLES2HelloAPI_LinuxX11.cpp | 324 @Output eglContext The EGLContext created by this function
327 @Description Sets up the EGLContext, creating it and then installing it to the current thread.
329 bool SetupEGLContext( EGLDisplay eglDisplay, EGLConfig eglConfig, EGLSurface eglSurface, EGLContext& eglContext )
345 eglContext = eglCreateContext(eglDisplay, eglConfig, NULL, contextAttributes);
366 eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext);
[all...] |
OGLES2HelloAPI_Windows.cpp | 131 EGLContext eglContext = 0;
299 eglContext = eglCreateContext(eglDisplay, eglConfig, NULL, ai32ContextAttribs);
315 eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext);
|
OGLES2HelloAPI_OSX.mm | 61 EGLContext m_Context; 223 @Output eglContext The EGLContext created by this function 228 @Description Sets up the EGLContext, creating it and then installing it to the current thread. 230 - (BOOL) setupEGLContext:(EGLContext &)eglContext fromDisplay:(EGLDisplay)eglDisplay withConfig:(EGLConfig)eglConfig 257 eglContext = eglCreateContext(eglDisplay, eglConfig, NULL, contextAttributes); 268 eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext); 519 // Choose an EGLConfig for the application, used when setting up the rendering surface and EGLContext 663 // Terminate the display, and any resources associated with it (including the EGLContext) [all...] |
/frameworks/native/opengl/tests/gl_basic/ |
gl_basic.cpp | 20 EGLContext eglContext; 250 if ( (eglContext = eglCreateContext(eglDisplay, myConfig, 0, 0)) == EGL_NO_CONTEXT ) 256 if ( eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext) != EGL_TRUE ) 286 eglDestroyContext( eglDisplay, eglContext );
|
/packages/apps/Camera2/src/com/android/camera/data/ |
GlideFilmstripManager.java | 24 import android.opengl.EGLContext; 271 EGLContext eglContext = EGL14.eglCreateContext(eglDisplay, eglConfig, EGL14.EGL_NO_CONTEXT, 273 EGL14.eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext); 284 EGL14.eglDestroyContext(eglDisplay, eglContext);
|
/external/deqp/modules/egl/ |
teglNegativePartialUpdateTests.cpp | 77 EGLContext m_eglContext; 118 EGLContext initAndMakeCurrentEGLContext (const Library& egl, EGLDisplay eglDisplay, EGLSurface eglSurface, EGLConfig eglConfig, const EGLint* attribList) 120 EGLContext eglContext = EGL_NO_CONTEXT; 123 eglContext = egl.createContext(eglDisplay, eglConfig, EGL_NO_CONTEXT, attribList); 126 egl.makeCurrent(eglDisplay, eglSurface, eglSurface, eglContext); 129 return eglContext;
|
teglImageTests.cpp | 193 void checkCreate (const char* desc, EGLDisplay dpy, const char* dpyStr, EGLContext context, const char* ctxStr, EGLenum source, const char* srcStr, EGLint expectError); 199 CHECK_CREATE("Testing bad context (-1)...", m_display, (EGLContext)-1, EGL_NONE, EGL_BAD_CONTEXT); 209 void InvalidCreateImage::checkCreate (const char* msg, EGLDisplay dpy, const char* dpyStr, EGLContext context, const char* ctxStr, EGLenum source, const char* srcStr, EGLint expectError) 260 EGLContext getEglContext (void) const { return *m_context; } 369 const EGLContext eglContext = context.getEglContext(); 377 const EGLImageKHR image = m_source->createImage(egl, dpy, eglContext, clientBuffer->get());
|
teglResizeTests.cpp | 154 EGLContext eglContext = egl.createContext(eglDisplay, 159 MovePtr<UniqueContext> context (new UniqueContext(egl, eglDisplay, eglContext));
|
teglWideColorTests.cpp | 1054 EGLContext eglContext = egl.createContext(m_eglDisplay, m_eglConfig, EGL_NO_CONTEXT, attribList); 1057 egl.makeCurrent(m_eglDisplay, surface, surface, eglContext); [all...] |
/frameworks/native/opengl/tests/EGLTest/ |
EGL_test.cpp | 459 EGLContext eglContext = eglCreateContext(mEglDisplay, EGL_NO_CONFIG_KHR, EGL_NO_CONTEXT, 461 EXPECT_NE(EGL_NO_CONTEXT, eglContext); 464 if (eglContext != EGL_NO_CONTEXT) { 465 eglDestroyContext(mEglDisplay, eglContext);
|
/cts/tests/tests/media/libmediandkjni/ |
native-media-jni.cpp | [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
RenderTarget.java | 34 import javax.microedition.khronos.egl.EGLContext; 66 private EGLContext mContext; 73 private static HashMap<EGLContext, ImageShader> mIdShaders 74 = new HashMap<EGLContext, ImageShader>(); 76 private static HashMap<EGLContext, EGLSurface> mDisplaySurfaces 77 = new HashMap<EGLContext, EGLSurface>(); 87 EGL10 egl = (EGL10) EGLContext.getEGL(); 90 EGLContext eglContext = createContext(egl, eglDisplay, eglConfig); 92 RenderTarget result = new RenderTarget(eglDisplay, eglContext, eglSurface, 0, true, true) [all...] |
/external/skia/src/views/win/ |
SkOSWindow_win.cpp | 455 EGLContext* eglContext, 528 EGLContext context = eglCreateContext(display, *eglConfig, 541 *eglContext = context;
|