/cts/tests/openglperf2/jni/graphics/ |
D | Renderer.cpp | 91 mOffscreen(offscreen), mEglDisplay(EGL_NO_DISPLAY), mEglSurface(EGL_NO_SURFACE), in Renderer() 108 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, mWindow, NULL); in eglSetUp() 109 EGL_RESULT_CHECK(mEglSurface != EGL_NO_SURFACE); in eglSetUp() 114 EGL_RESULT_CHECK(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in eglSetUp() 115 EGL_RESULT_CHECK(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &mWidth)); in eglSetUp() 116 EGL_RESULT_CHECK(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &mHeight)); in eglSetUp() 130 if (mEglSurface != EGL_NO_SURFACE) { in eglTearDown() 131 mEglSurface = EGL_NO_SURFACE; in eglTearDown() 143 EGL_RESULT_CHECK(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in setUp() 229 EGL_RESULT_CHECK(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in draw() [all …]
|
D | Renderer.h | 37 EGLSurface mEglSurface; variable
|
/cts/tests/openglperf2/jni/primitive/contextswitch/ |
D | ContextSwitchRenderer.cpp | 114 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]) in setUp() 145 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]); in tearDown() 155 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in tearDown() 208 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]); in drawWorkload() 230 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in drawWorkload()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | GLProducerThread.java | 43 private EGLSurface mEglSurface = EGL10.EGL_NO_SURFACE; field in GLProducerThread 113 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, in initGL() 116 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in initGL() 126 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL() 136 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in destroyGL() 138 mEglSurface = EGL10.EGL_NO_SURFACE; in destroyGL() 150 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in run()
|
D | TextureViewCtsActivity.java | 80 private EGLSurface mEglSurface; field in TextureViewCtsActivity 216 if (mEglSurface != null) { in initGl() 239 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in drawColor() 263 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in drawFrame() 290 if (mEglSurface != null) { in doFinishGL() 291 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in doFinishGL() 292 mEglSurface = null; in doFinishGL() 402 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, 406 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 412 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | GlTestBase.java | 58 private EGLSurface mEglSurface; field in GlTestBase 83 mEglSurface = eglCreatePbufferSurface(sEglDisplay, eglConfig, new int[] { in createContext() 88 assertNotSame(EGL_NO_SURFACE, mEglSurface); in createContext() 90 eglMakeCurrent(sEglDisplay, mEglSurface, mEglSurface, mEglContext); in createContext() 97 eglDestroySurface(sEglDisplay, mEglSurface); in cleanupContext()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GLSurfaceViewCustom.java | 1050 mEglSurface = null; in start() 1087 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface() 1090 mEglSurface = null; in createSurface() 1093 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface() 1105 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 1150 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap() 1164 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp() 1170 view.mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in destroySurfaceImp() 1172 mEglSurface = null; in destroySurfaceImp() 1217 EGLSurface mEglSurface; field in GLSurfaceViewCustom.EglHelper
|