/cts/tests/openglperf2/jni/graphics/ |
D | Renderer.cpp | 92 mEglContext(EGL_NO_CONTEXT), mWindow(window) { in Renderer() 111 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, contextAttribs); in eglSetUp() 112 EGL_RESULT_CHECK(mEglContext != EGL_NO_CONTEXT); in eglSetUp() 114 EGL_RESULT_CHECK(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in eglSetUp() 125 if (mEglContext != EGL_NO_CONTEXT) { in eglTearDown() 126 eglDestroyContext(mEglDisplay, mEglContext); in eglTearDown() 127 mEglContext = EGL_NO_CONTEXT; in eglTearDown() 143 EGL_RESULT_CHECK(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in setUp() 229 EGL_RESULT_CHECK(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in draw()
|
D | Renderer.h | 38 EGLContext mEglContext; variable
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ASurfaceTextureTest.java | 49 private EGLContext mEglContext = EGL_NO_CONTEXT; field in ASurfaceTextureTest 84 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in setup() 86 if (mEglContext == EGL_NO_CONTEXT) { in setup() 90 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { in setup()
|
D | EGL14Test.java | 47 private EGLContext mEglContext = EGL14.EGL_NO_CONTEXT; field in EGL14Test 105 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL14.EGL_NO_CONTEXT, in setup() 107 if (mEglContext == EGL14.EGL_NO_CONTEXT) { in setup() 116 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { in setup() 144 if (!EGL14.eglDestroyContext(mEglDisplay, mEglContext)) { in teardown()
|
D | EGL15Test.java | 55 private EGLContext mEglContext = EGL15.EGL_NO_CONTEXT; field in EGL15Test 117 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL14.EGL_NO_CONTEXT, in setup() 119 if (mEglContext == EGL15.EGL_NO_CONTEXT) { in setup() 128 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { in setup() 286 EGLImage image = EGL15.eglCreateImage(mEglDisplay, mEglContext, in testEGL15CreateImage()
|
D | ANativeWindowTest.java | 54 private EGLContext mEglContext = EGL_NO_CONTEXT; field in ANativeWindowTest 89 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in setup() 91 if (mEglContext == EGL_NO_CONTEXT) { in setup() 95 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { in setup()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | GlTestBase.java | 57 private EGLContext mEglContext; field in GlTestBase 80 mEglContext = Egl14Utils.createEglContext(sEglDisplay, eglConfig, 2); in createContext() 90 eglMakeCurrent(sEglDisplay, mEglSurface, mEglSurface, mEglContext); in createContext() 98 Egl14Utils.destroyEglContext(sEglDisplay, mEglContext); in cleanupContext()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | GLProducerThread.java | 42 private EGLContext mEglContext = EGL10.EGL_NO_CONTEXT; field in GLProducerThread 110 mEglContext = mEgl.eglCreateContext(mEglDisplay, in initGL() 126 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL() 135 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in destroyGL() 137 mEglContext = EGL10.EGL_NO_CONTEXT; in destroyGL()
|
D | TextureViewCtsActivity.java | 78 private EGLContext mEglContext; field in TextureViewCtsActivity 292 if (mEglContext != null) { in doFinishGL() 293 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in doFinishGL() 294 mEglContext = null; in doFinishGL() 398 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 410 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GLSurfaceViewCustom.java | 1032 mEglContext = null; in start() 1040 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start() 1042 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { in start() 1043 mEglContext = null; in start() 1047 … Log.w("EglHelper", "createContext " + mEglContext + " tid=" + Thread.currentThread().getId()); in start() 1105 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 1123 GL gl = mEglContext.getGL(); in createGL() 1180 if (mEglContext != null) { in finish() 1183 view.mEGLContextFactory.destroyContext(mEgl, mEglDisplay, mEglContext); in finish() 1185 mEglContext = null; in finish() [all …]
|
/cts/tests/openglperf2/jni/primitive/contextswitch/ |
D | ContextSwitchRenderer.cpp | 109 mContexts[i] = eglCreateContext(mEglDisplay, mGlConfig, mEglContext, contextAttribs); in setUp() 155 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in tearDown() 230 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in drawWorkload()
|