/frameworks/native/libs/gui/tests/ |
SurfaceTextureMultiContextGL.h | 42 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 54 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 61 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
|
SurfaceTextureMultiContextGL_test.cpp | 36 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 122 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 152 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 183 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 210 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, [all...] |
SRGB_test.cpp | 52 mEglContext(EGL_NO_CONTEXT), mEglSurface(EGL_NO_SURFACE), 58 if (mEglSurface != EGL_NO_SURFACE) { 59 eglDestroySurface(mEglDisplay, mEglSurface); 234 EGLSurface mEglSurface; 274 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, 277 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); 279 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 376 eglSwapBuffers(mEglDisplay, mEglSurface); 407 eglSwapBuffers(mEglDisplay, mEglSurface); [all...] |
GLTest.cpp | 77 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window); 84 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, 88 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); 95 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 100 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); 102 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); 113 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { 114 eglSwapBuffers(mEglDisplay, mEglSurface); 124 if (mEglSurface != EGL_NO_SURFACE) [all...] |
GLTest.h | 39 mEglSurface(EGL_NO_SURFACE), 63 EGLSurface mEglSurface;
|
SurfaceTextureGLToGL_test.cpp | 113 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 171 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 217 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 352 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 413 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, [all...] |
/cts/tests/tests/nativeopengl/standalone/jni/tests/ |
GLTest_test.cpp | 39 mEglSurface(EGL_NO_SURFACE), 70 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 78 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, 82 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); 89 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 94 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); 96 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); 105 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { 106 eglSwapBuffers(mEglDisplay, mEglSurface); [all...] |
EGLCleanup_test.cpp | 78 mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT), 115 EGLSurface mEglSurface; 207 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 265 mEglSurface = eglCreatePbufferSurface(mEglDisplay, eglConfig, 267 if (mEglSurface == EGL_NO_SURFACE) { 299 eglDestroySurface(mEglDisplay, mEglSurface);
|
/frameworks/av/cmds/screenrecord/ |
EglWindow.cpp | 38 if (mEglSurface != EGL_NO_SURFACE) { 53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), 55 if (mEglSurface == EGL_NO_SURFACE) { 65 if (mEglSurface != EGL_NO_SURFACE) { 82 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); 83 if (mEglSurface == EGL_NO_SURFACE) { 93 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 169 if (mEglSurface != EGL_NO_SURFACE) { 170 eglDestroySurface(mEglDisplay, mEglSurface); [all...] |
EglWindow.h | 37 mEglSurface(EGL_NO_SURFACE), 77 EGLSurface mEglSurface;
|
/packages/apps/Camera2/src/com/android/camera/ |
SurfaceTextureRenderer.java | 43 private EGLSurface mEglSurface; 57 if (mEglDisplay != null && mEglSurface != null) { 59 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 79 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 84 mEglSurface = null; 135 mEglSurface = mEgl.eglCreateWindowSurface( 137 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 142 mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |
/cts/tests/tests/textureview/src/android/textureview/cts/ |
GLProducerThread.java | 48 private EGLSurface mEglSurface = EGL10.EGL_NO_SURFACE; 116 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, configs[0], mSurfaceTexture, null); 118 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 127 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 138 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 140 mEglSurface = EGL10.EGL_NO_SURFACE; 152 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);
|
/cts/suite/cts/deviceTests/opengl/jni/graphics/ |
Renderer.cpp | 83 mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT), mWorkload(workload) { 105 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, mWindow, NULL); 106 if (EGL_NO_SURFACE == mEglSurface || EGL_SUCCESS != eglGetError()) { 115 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext) 120 if (!eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &mWidth) 124 if (!eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &mHeight) 209 if (mEglSurface != EGL_NO_SURFACE) { 210 eglDestroySurface(mEglDisplay, mEglSurface); 211 mEglSurface = EGL_NO_SURFACE [all...] |
Renderer.h | 37 EGLSurface mEglSurface;
|
/cts/suite/cts/deviceTests/opengl/jni/primitive/contextswitch/ |
ContextSwitchRenderer.cpp | 113 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]) 144 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]); 153 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); 201 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]); 222 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
MosaicPreviewRenderer.java | 56 private EGLSurface mEglSurface; 108 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 120 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 144 mEglSurface = mEgl.eglCreateWindowSurface( 146 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 150 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 161 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 166 mEglSurface = null [all...] |
/frameworks/base/libs/hwui/renderthread/ |
CanvasContext.cpp | 44 , mEglSurface(EGL_NO_SURFACE) 75 if (mEglSurface != EGL_NO_SURFACE) { 76 mEglManager.destroySurface(mEglSurface); 77 mEglSurface = EGL_NO_SURFACE; 81 mEglSurface = mEglManager.createSurface(window); 84 if (mEglSurface != EGL_NO_SURFACE) { 85 mDirtyRegionsEnabled = mEglManager.enableDirtyRegions(mEglSurface); 94 if (CC_UNLIKELY(!mEglManager.swapBuffers(mEglSurface))) { 101 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, 136 mHaveNewSurface |= mEglManager.makeCurrent(mEglSurface); [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
BlockingGLTextureView.java | 110 EGLSurface mEglSurface; 183 mEglSurface = null; 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 218 mEglSurface = null; 221 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 268 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
BlockingGLTextureView.java | 110 EGLSurface mEglSurface; 183 mEglSurface = null; 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 218 mEglSurface = null; 221 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 268 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
BlockingGLTextureView.java | 110 EGLSurface mEglSurface; 183 mEglSurface = null; 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 218 mEglSurface = null; 221 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 268 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) [all...] |
/frameworks/av/media/libstagefright/tests/ |
SurfaceMediaSource_test.cpp | 57 mEglSurface(EGL_NO_SURFACE), 107 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 116 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 120 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); 127 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 132 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); 134 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); 145 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { 146 eglSwapBuffers(mEglDisplay, mEglSurface); [all...] |
/packages/screensavers/Basic/src/com/android/dreams/basic/ |
ColorsGLRenderer.java | 71 private EGLSurface mEglSurface; 135 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 146 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { 147 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 176 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, eglConfig, mSurface, null); 178 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 188 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
FireflyRenderer.java | 162 EGLSurface mEglSurface; 204 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 230 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 282 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { 283 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 316 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); 318 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 324 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GLTextureViewActivity.java | 144 private EGLSurface mEglSurface; 238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 353 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { 354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); 385 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 395 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
ColorFade.java | 93 private EGLSurface mEglSurface; 387 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); 589 if (mEglSurface == null) { 594 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, 596 if (mEglSurface == null) { 605 if (mEglSurface != null) { 606 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) { 609 mEglSurface = null; 647 if (mEglSurface == null) { 650 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |