Home
last modified time | relevance | path

Searched refs:mEglDisplay (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()
97 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in eglSetUp()
98 EGL_RESULT_CHECK(mEglDisplay != EGL_NO_DISPLAY); in eglSetUp()
102 EGL_RESULT_CHECK(eglInitialize(mEglDisplay, &major, &minor)); in eglSetUp()
105 EGL_RESULT_CHECK(eglChooseConfig(mEglDisplay, configAttribs, &mGlConfig, 1, &numConfigs) in eglSetUp()
108 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, mWindow, NULL); in eglSetUp()
111 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, contextAttribs); 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()
[all …]
DRenderer.h36 EGLDisplay mEglDisplay;
/cts/tests/openglperf2/jni/primitive/contextswitch/
DContextSwitchRenderer.cpp109 mContexts[i] = eglCreateContext(mEglDisplay, mGlConfig, mEglContext, contextAttribs); in setUp()
114 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]) in setUp()
145 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]); in tearDown()
150 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in tearDown()
151 eglDestroyContext(mEglDisplay, mContexts[i]); in tearDown()
155 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in tearDown()
181 EGLSyncKHR fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); in drawWorkload()
186 eglWaitSyncKHR(mEglDisplay, fence, 0); in drawWorkload()
187 eglDestroySyncKHR(mEglDisplay, fence); in drawWorkload()
204 fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); in drawWorkload()
[all …]
/cts/tests/tests/textureview/src/android/textureview/cts/
DGLProducerThread.java46 private EGLDisplay mEglDisplay = EGL10.EGL_NO_DISPLAY; field in GLProducerThread
81 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL()
82 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL()
88 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
106 …if (!mEgl.eglChooseConfig(mEglDisplay, configAttribs, configs, 1, numConfigs) || numConfigs[0] == … in initGL()
114 …mEglContext = mEgl.eglCreateContext(mEglDisplay, configs[0], EGL10.EGL_NO_CONTEXT, contextAttribs); in initGL()
116 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, configs[0], mSurfaceTexture, null); in initGL()
127 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
136 …mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); in destroyGL()
137 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in destroyGL()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCtsActivity.java61 private EGLDisplay mEglDisplay; field in TextureViewCtsActivity
143 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in drawColor()
168 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in doFinishGL()
170 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in doFinishGL()
172 mEgl.eglTerminate(mEglDisplay); in doFinishGL()
209 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
210 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {
216 if (!mEgl.eglInitialize(mEglDisplay, version)) {
226 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
228 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig,
[all …]
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGLSurfaceViewCustom.java1016 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start()
1018 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start()
1026 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start()
1034 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start()
1040 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start()
1069 if (mEglDisplay == null) { in createSurface()
1088 mEglDisplay, mEglConfig, view.getHolder()); in createSurface()
1105 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1150 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1165 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, in destroySurfaceImp()
[all …]
/cts/tools/dex-tools/dex/
Dclasses.out.dex88398 private javax.microedition.khronos.egl.EGLDisplay mEglDisplay