Home
last modified time | relevance | path

Searched refs:mEglSurface (Results 1 – 7 of 7) sorted by relevance

/cts/tests/openglperf2/jni/graphics/
DRenderer.cpp91 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 …]
DRenderer.h37 EGLSurface mEglSurface; variable
/cts/tests/openglperf2/jni/primitive/contextswitch/
DContextSwitchRenderer.cpp114 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/
DGLProducerThread.java43 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()
DTextureViewCtsActivity.java79 private EGLSurface mEglSurface; field in TextureViewCtsActivity
215 if (mEglSurface != null) { in initGl()
238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in drawColor()
261 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in drawFrame()
288 if (mEglSurface != null) { in doFinishGL()
289 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in doFinishGL()
290 mEglSurface = null; in doFinishGL()
400 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig,
404 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) {
410 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/cts/tests/tests/opengl/src/android/opengl/cts/
DGlTestBase.java58 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/
DGLSurfaceViewCustom.java1050 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