/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GLTextureViewActivity.java | 143 private EGLContext mEglContext; field in class:GLTextureViewActivity.RenderThread 347 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 352 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || 354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 395 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 400 mGL = mEglContext.getGL();
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureClient_test.cpp | 34 mEglContext(EGL_NO_CONTEXT) { 73 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); 75 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); 77 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); 87 eglDestroyContext(mEglDisplay, mEglContext); 112 EGLContext mEglContext; member in class:android::SurfaceTextureClientTest 180 EGLBoolean success = eglMakeCurrent(mEglDisplay, eglSurface, eglSurface, mEglContext); 194 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); 683 mEglContext(EGL_NO_CONTEXT) { 712 mEglContext 748 EGLContext mEglContext; member in class:android::MultiSurfaceTextureClientTest [all...] |
H A D | SurfaceTexture_test.cpp | 49 mEglContext(EGL_NO_CONTEXT) { 116 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 119 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); 122 mEglContext)); 147 if (mEglContext != EGL_NO_CONTEXT) { 148 eglDestroyContext(mEglDisplay, mEglContext); 284 EGLContext mEglContext; member in class:android::GLTest 1602 mEglContext)); 1660 mEglContext)); 1706 mEglContext)); [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLSurfaceView.java | 1022 mEglContext = null; 1030 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); 1032 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { 1033 mEglContext = null; 1037 Log.w("EglHelper", "createContext " + mEglContext + " tid=" + Thread.currentThread().getId()); 1095 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 1113 GL gl = mEglContext.getGL(); 1170 if (mEglContext != null) { 1173 view.mEGLContextFactory.destroyContext(mEgl, mEglDisplay, mEglContext); 1209 EGLContext mEglContext; field in class:GLSurfaceView.EglHelper [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 123 private EGLContext mEglContext; field in class:ImageWallpaper.DrawableEngine 604 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 628 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 629 if (mEglContext == EGL_NO_CONTEXT) { 640 mEgl.eglMakeCurrent(mEglDisplay, tmpSurface, tmpSurface, mEglContext); 650 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 670 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
|
/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 95 mEglContext(EGL_NO_CONTEXT), 323 if ((mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) || 330 mEglContext = ctx; 369 if (mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) { 396 mEglContext = EGL_NO_CONTEXT; 446 mEglContext = ctx; 786 if (mEglContext != ctx || mEglContext [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
H A D | NativeWindowRenderer.h | 90 EGLContext mEglContext; member in class:android::NativeWindowRenderer
|
H A D | NativeWindowRenderer.cpp | 213 mEglContext = eglCreateContext(mEglDisplay, config, EGL_NO_CONTEXT, 217 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); 222 eglDestroyContext(mEglDisplay, mEglContext);
|
/frameworks/av/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 57 mEglContext(EGL_NO_CONTEXT) { 121 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 124 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); 127 mEglContext)); 152 if (mEglContext != EGL_NO_CONTEXT) { 153 eglDestroyContext(mEglDisplay, mEglContext); 341 EGLContext mEglContext; member in class:android::GLTest 499 mEglContext)); 801 mEglContext));
|
/frameworks/base/services/java/com/android/server/power/ |
H A D | ElectronBeam.java | 89 private EGLContext mEglContext; field in class:ElectronBeam 476 if (mEglContext == null) { 480 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, 482 if (mEglContext == null) { 492 if (mEglContext != null) { 493 if (!EGL14.eglDestroyContext(mEglDisplay, mEglContext)) { 496 mEglContext = null; 599 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
|
/frameworks/base/core/java/android/view/ |
H A D | HardwareRenderer.java | 774 EGLContext mEglContext; field in class:HardwareRenderer.GlRenderer 1040 mEglContext = managedContext != null ? managedContext.getContext() : null; 1043 if (mEglContext == null) { 1044 mEglContext = createContext(sEgl, sEglDisplay, sEglConfig); 1045 sEglContextStorage.set(createManagedContext(mEglContext)); 1162 return mEglContext.getGL(); 1263 if (!sEgl.eglMakeCurrent(sEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 1588 if (!mEglContext.equals(sEgl.eglGetCurrentContext()) || 1590 if (!sEgl.eglMakeCurrent(sEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 1766 return new Gl20Renderer.Gl20RendererEglContext(mEglContext); [all...] |
/frameworks/native/include/gui/ |
H A D | GLConsumer.h | 265 // to mEglDisplay and mEglContext. If the fields have been previously 392 // mEglContext is the OpenGL ES context with which this GLConsumer is 396 EGLContext mEglContext; member in class:android::GLConsumer
|