Home
last modified time | relevance | path

Searched refs:mEglContext (Results 1 – 11 of 11) sorted by relevance

/cts/tests/openglperf2/jni/graphics/
DRenderer.cpp92 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()
DRenderer.h38 EGLContext mEglContext; variable
/cts/tests/tests/graphics/src/android/graphics/cts/
DASurfaceTextureTest.java49 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()
DEGL14Test.java47 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()
DEGL15Test.java55 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()
DANativeWindowTest.java54 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/
DGlTestBase.java57 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/
DGLProducerThread.java42 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()
DTextureViewCtsActivity.java79 private EGLContext mEglContext; field in TextureViewCtsActivity
294 if (mEglContext != null) { in doFinishGL()
295 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in doFinishGL()
296 mEglContext = null; in doFinishGL()
400 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
412 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGLSurfaceViewCustom.java1032 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/
DContextSwitchRenderer.cpp109 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()