Home
last modified time | relevance | path

Searched refs:mEglDisplay (Results 1 – 12 of 12) 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/tests/graphics/src/android/graphics/cts/
DEGL15Test.java52 private EGLDisplay mEglDisplay = EGL15.EGL_NO_DISPLAY; field in EGL15Test
62 mEglDisplay = EGL15.eglGetPlatformDisplay(EGL15.EGL_PLATFORM_ANDROID_KHR, in setup()
67 if (mEglDisplay == EGL15.EGL_NO_DISPLAY) { in setup()
77 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { in setup()
91 if (!EGL14.eglChooseConfig(mEglDisplay, in setup()
106 mEglPbuffer = EGL14.eglCreatePbufferSurface(mEglDisplay, mEglConfig, in setup()
117 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL14.EGL_NO_CONTEXT, in setup()
128 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { in setup()
139 EGL14.eglTerminate(mEglDisplay); in teardown()
147 EGLSync sync = EGL15.eglCreateSync(mEglDisplay, EGL15.EGL_SYNC_FENCE, in testEGL15SyncFence()
[all …]
DEGL14Test.java44 private EGLDisplay mEglDisplay = EGL14.EGL_NO_DISPLAY; field in EGL14Test
54 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in setup()
55 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) { in setup()
65 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { in setup()
79 if (!EGL14.eglChooseConfig(mEglDisplay, in setup()
94 mEglPbuffer = EGL14.eglCreatePbufferSurface(mEglDisplay, mEglConfig, in setup()
105 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL14.EGL_NO_CONTEXT, in setup()
116 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { in setup()
129 if (!EGL14.eglMakeCurrent(mEglDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, in teardown()
137 if (!EGL14.eglDestroySurface(mEglDisplay, mEglPbuffer)) { in teardown()
[all …]
DASurfaceTextureTest.java46 private EGLDisplay mEglDisplay = EGL_NO_DISPLAY; field in ASurfaceTextureTest
53 mEglDisplay = EGL14.eglGetDisplay(EGL_DEFAULT_DISPLAY); in setup()
54 if (mEglDisplay == EGL_NO_DISPLAY) { in setup()
59 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { in setup()
68 if (!EGL14.eglChooseConfig(mEglDisplay, in setup()
78 mEglPbuffer = EGL14.eglCreatePbufferSurface(mEglDisplay, mEglConfig, in setup()
84 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in setup()
90 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { in setup()
DSyncTest.java61 private EGLDisplay mEglDisplay = EGL_NO_DISPLAY; field in SyncTest
66 mEglDisplay = EGL14.eglGetDisplay(EGL_DEFAULT_DISPLAY); in setup()
67 if (mEglDisplay == EGL_NO_DISPLAY) { in setup()
72 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { in setup()
78 if (!EGL14.eglChooseConfig(mEglDisplay, in setup()
92 EGL14.eglTerminate(mEglDisplay); in teardown()
DANativeWindowTest.java51 private EGLDisplay mEglDisplay = EGL_NO_DISPLAY; field in ANativeWindowTest
58 mEglDisplay = EGL14.eglGetDisplay(EGL_DEFAULT_DISPLAY); in setup()
59 if (mEglDisplay == EGL_NO_DISPLAY) { in setup()
64 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { in setup()
73 if (!EGL14.eglChooseConfig(mEglDisplay, in setup()
83 mEglPbuffer = EGL14.eglCreatePbufferSurface(mEglDisplay, mEglConfig, in setup()
89 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in setup()
95 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { in setup()
/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/view/src/android/view/cts/
DGLProducerThread.java41 private EGLDisplay mEglDisplay = EGL10.EGL_NO_DISPLAY; field in GLProducerThread
76 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL()
77 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL()
83 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
101 if (!mEgl.eglChooseConfig(mEglDisplay, configAttribs, configs, 1, numConfigs) in initGL()
110 mEglContext = mEgl.eglCreateContext(mEglDisplay, in initGL()
113 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, in initGL()
126 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
133 mEgl.eglMakeCurrent(mEglDisplay, in destroyGL()
135 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in destroyGL()
[all …]
DTextureViewCtsActivity.java77 private EGLDisplay mEglDisplay; field in TextureViewCtsActivity
239 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in drawColor()
263 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in drawFrame()
291 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in doFinishGL()
295 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in doFinishGL()
298 if (mEglDisplay != null) { in doFinishGL()
299 mEgl.eglTerminate(mEglDisplay); in doFinishGL()
339 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
340 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {
346 if (!mEgl.eglInitialize(mEglDisplay, version)) {
[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/tests/tests/graphics/jni/
Dandroid_graphics_cts_CameraGpuCtsActivity.cpp105 eglDestroyImageKHR(mEglDisplay, mEglImage); in ~CameraFrameRenderer()
175 mEglDisplay = eglGetCurrentDisplay(); in initRenderer()
214 eglDestroyImageKHR(mEglDisplay, mEglImage); in drawFrame()
224 mEglImage = eglCreateImageKHR(mEglDisplay, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, in drawFrame()
285 EGLDisplay mEglDisplay{EGL_NO_DISPLAY}; member in __anondb91f7220111::CameraFrameRenderer