/cts/tests/tests/nativeopengl/standalone/jni/tests/ |
EGLCreateContext_test.cpp | 53 mEglContext(EGL_NO_CONTEXT) 80 if (mEglContext != EGL_NO_CONTEXT) { 81 eglDestroyContext(mEglDisplay, mEglContext); 114 EGLContext mEglContext; 123 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, 125 ASSERT_NE(mEglContext, EGL_NO_CONTEXT); 127 ASSERT_EQ(EGL_TRUE, eglDestroyContext(mEglDisplay, mEglContext)); 128 mEglContext = EGL_NO_CONTEXT; 132 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, 134 ASSERT_EQ(mEglContext, EGL_NO_CONTEXT) [all...] |
GLTest_test.cpp | 40 mEglContext(EGL_NO_CONTEXT) { 84 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 87 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); 90 mEglContext)); 110 if (mEglContext != EGL_NO_CONTEXT) { 111 eglDestroyContext(mEglDisplay, mEglContext); 184 EGLContext mEglContext;
|
EGLCleanup_test.cpp | 78 mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT), 116 EGLContext mEglContext; 208 mEglContext)) 272 mEglContext = eglCreateContext(mEglDisplay, eglConfig, EGL_NO_CONTEXT, 274 if (mEglContext == EGL_NO_CONTEXT) { 298 eglDestroyContext(mEglDisplay, mEglContext);
|
/frameworks/av/cmds/screenrecord/ |
EglWindow.h | 36 mEglContext(EGL_NO_CONTEXT), 76 EGLContext mEglContext;
|
EglWindow.cpp | 93 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 149 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, 151 if (mEglContext == EGL_NO_CONTEXT) { 165 if (mEglContext != EGL_NO_CONTEXT) { 166 eglDestroyContext(mEglDisplay, mEglContext); 175 mEglContext = EGL_NO_CONTEXT;
|
/packages/apps/Camera2/src/com/android/camera/ |
SurfaceTextureRenderer.java | 42 private EGLContext mEglContext; 80 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 85 mEglContext = null; 129 mEglContext = mEgl.eglCreateContext( 132 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { 142 mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 146 mGl = (GL10) mEglContext.getGL();
|
/cts/tests/tests/textureview/src/android/textureview/cts/ |
GLProducerThread.java | 47 private EGLContext mEglContext = EGL10.EGL_NO_CONTEXT; 114 mEglContext = mEgl.eglCreateContext(mEglDisplay, configs[0], EGL10.EGL_NO_CONTEXT, contextAttribs); 127 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 132 mGl = mEglContext.getGL(); 137 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 139 mEglContext = EGL10.EGL_NO_CONTEXT;
|
/development/ndk/platforms/android-18/samples/gles3jni/jni/ |
RendererES2.cpp | 53 const EGLContext mEglContext; 75 : mEglContext(eglGetCurrentContext()), 108 if (eglGetCurrentContext() != mEglContext)
|
RendererES3.cpp | 65 const EGLContext mEglContext; 81 : mEglContext(eglGetCurrentContext()), 132 if (eglGetCurrentContext() != mEglContext)
|
/cts/suite/cts/deviceTests/opengl/jni/graphics/ |
Renderer.cpp | 83 mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT), mWorkload(workload) { 110 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, contextAttribs); 111 if (EGL_NO_CONTEXT == mEglContext || EGL_SUCCESS != eglGetError()) { 115 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext) 205 if (mEglContext != EGL_NO_CONTEXT) { 206 eglDestroyContext(mEglDisplay, mEglContext); 207 mEglContext = EGL_NO_CONTEXT; 224 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)
|
Renderer.h | 38 EGLContext mEglContext;
|
/frameworks/native/libs/gui/tests/ |
GLTest.h | 40 mEglContext(EGL_NO_CONTEXT) { 64 EGLContext mEglContext;
|
SRGB_test.cpp | 52 mEglContext(EGL_NO_CONTEXT), mEglSurface(EGL_NO_SURFACE), 61 if (mEglContext != EGL_NO_CONTEXT) { 62 eglDestroyContext(mEglDisplay, mEglContext); 233 EGLContext mEglContext; 269 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, 272 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); 280 mEglContext)); 436 mEglContext)); 448 mEglContext));
|
SurfaceTextureMultiContextGL.h | 62 mEglContext));
|
GLTest.cpp | 90 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 93 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); 96 mEglContext)); 121 if (mEglContext != EGL_NO_CONTEXT) { 122 eglDestroyContext(mEglDisplay, mEglContext);
|
SurfaceTextureClient_test.cpp | 37 mEglContext(EGL_NO_CONTEXT) { 80 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); 82 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); 84 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); 94 eglDestroyContext(mEglDisplay, mEglContext); 119 EGLContext mEglContext; 187 EGLBoolean success = eglMakeCurrent(mEglDisplay, eglSurface, eglSurface, mEglContext); 201 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); 682 mEglContext(EGL_NO_CONTEXT) { 711 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT [all...] |
/packages/apps/Camera/src/com/android/camera/ |
MosaicPreviewRenderer.java | 55 private EGLContext mEglContext; 138 mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, 141 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { 150 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 154 mGl = (GL10) mEglContext.getGL(); 162 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 167 mEglContext = null;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
BlockingGLTextureView.java | 112 EGLContext mEglContext; 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 178 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { 179 mEglContext = null; 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 249 return (GL10) mEglContext.getGL(); 278 if (mEglContext != null) { 279 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 280 mEglContext = null [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
BlockingGLTextureView.java | 112 EGLContext mEglContext; 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 178 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { 179 mEglContext = null; 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 249 return (GL10) mEglContext.getGL(); 278 if (mEglContext != null) { 279 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 280 mEglContext = null [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
BlockingGLTextureView.java | 112 EGLContext mEglContext; 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 178 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { 179 mEglContext = null; 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 249 return (GL10) mEglContext.getGL(); 278 if (mEglContext != null) { 279 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 280 mEglContext = null [all...] |
/frameworks/base/libs/hwui/renderthread/ |
EglManager.cpp | 71 , mEglContext(EGL_NO_CONTEXT) 147 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, attribs); 148 LOG_ALWAYS_FATAL_IF(mEglContext == EGL_NO_CONTEXT, 216 eglDestroyContext(mEglDisplay, mEglContext); 223 mEglContext = EGL_NO_CONTEXT; 236 } else if (!eglMakeCurrent(mEglDisplay, surface, surface, mEglContext)) {
|
EglManager.h | 71 EGLContext mEglContext;
|
/packages/screensavers/Basic/src/com/android/dreams/basic/ |
ColorsGLRenderer.java | 70 private EGLContext mEglContext; 145 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || 147 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 174 mEglContext = createContext(mEgl, mEglDisplay, eglConfig); 188 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 195 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
|
/packages/apps/Nfc/src/com/android/nfc/ |
FireflyRenderer.java | 161 EGLContext mEglContext; 281 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || 283 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 314 mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); 324 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 330 mGL = (GL10) mEglContext.getGL(); 348 if (mEglContext != null) { 349 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GLTextureViewActivity.java | 143 private EGLContext mEglContext; 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();
|