Home
last modified time | relevance | path

Searched refs:mEglDisplay (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/opengl/tests/EGLTest/
DEGL_test.cpp30 EGLDisplay mEglDisplay; member in android::EGLTest
34 mEglDisplay(EGL_NO_DISPLAY) { in EGLTest()
38 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
39 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
44 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
51 EGLBoolean success = eglTerminate(mEglDisplay); in TearDown()
68 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
75 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
78 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
81 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
[all …]
/frameworks/native/libs/gui/tests/
DSurfaceTexture_test.cpp44 mEglDisplay(EGL_NO_DISPLAY), in GLTest()
55 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
57 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
61 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
67 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, in SetUp()
99 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
107 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp()
113 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp()
118 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
123 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
[all …]
DSurfaceTextureClient_test.cpp32 mEglDisplay(EGL_NO_DISPLAY), in SurfaceTextureClientTest()
50 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
52 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
55 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
60 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), in SetUp()
68 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
72 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); in SetUp()
76 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
85 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TearDown()
86 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
[all …]
/frameworks/av/media/libstagefright/tests/
DSurfaceMediaSource_test.cpp55 mEglDisplay(EGL_NO_DISPLAY), in GLTest()
62 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
64 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
68 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
74 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, in SetUp()
106 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
115 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
121 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp()
126 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
131 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLTextureViewActivity.java141 private EGLDisplay mEglDisplay; field in GLTextureViewActivity.RenderThread
238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run()
347 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
364 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL()
365 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL()
371 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL()
383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL()
[all …]
/frameworks/base/services/java/com/android/server/power/
DElectronBeam.java85 private EGLDisplay mEglDisplay; field in ElectronBeam
233 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
466 if (mEglDisplay == null) { in createEglContext()
467 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in createEglContext()
468 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) { in createEglContext()
474 if (!EGL14.eglInitialize(mEglDisplay, version, 0, version, 1)) { in createEglContext()
475 mEglDisplay = null; in createEglContext()
491 if (!EGL14.eglChooseConfig(mEglDisplay, eglConfigAttribList, 0, in createEglContext()
503 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, in createEglContext()
563 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, in createEglSurface()
[all …]
/frameworks/av/libvideoeditor/lvpp/
DNativeWindowRenderer.cpp187 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initializeEGL()
192 eglInitialize(mEglDisplay, &majorVersion, &minorVersion); in initializeEGL()
205 eglChooseConfig(mEglDisplay, configAttribs, &config, 1, &numConfigs); in initializeEGL()
208 mEglSurface = eglCreateWindowSurface(mEglDisplay, config, in initializeEGL()
213 mEglContext = eglCreateContext(mEglDisplay, config, EGL_NO_CONTEXT, in initializeEGL()
217 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in initializeEGL()
222 eglDestroyContext(mEglDisplay, mEglContext); in terminateEGL()
223 eglDestroySurface(mEglDisplay, mEglSurface); in terminateEGL()
224 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in terminateEGL()
225 eglTerminate(mEglDisplay); in terminateEGL()
[all …]
DNativeWindowRenderer.h88 EGLDisplay mEglDisplay; variable
/frameworks/native/libs/gui/
DSurfaceTexture.cpp129 mEglDisplay(EGL_NO_DISPLAY), in SurfaceTexture()
169 eglDestroyImageKHR(mEglDisplay, mEglSlots[slot].mEglImage); in acquireBufferLocked()
178 EGLImageKHR image = createImage(mEglDisplay, mSlots[slot].mGraphicBuffer); in acquireBufferLocked()
190 status_t err = ConsumerBase::releaseBufferLocked(buf, mEglDisplay, in releaseBufferLocked()
219 if ((mEglDisplay != dpy && mEglDisplay != EGL_NO_DISPLAY) || in updateTexImage()
231 mEglDisplay = dpy; in updateTexImage()
355 if (mEglDisplay != dpy && mEglDisplay != EGL_NO_DISPLAY) { in detachFromContext()
381 eglDestroyImageKHR(mEglDisplay, img); in detachFromContext()
386 mEglDisplay = EGL_NO_DISPLAY; in detachFromContext()
458 mEglDisplay = dpy; in attachToContext()
[all …]
DBufferQueue.cpp392 mSlots[buf].mEglDisplay = EGL_NO_DISPLAY; in dequeueBuffer()
397 dpy = mSlots[buf].mEglDisplay; in dequeueBuffer()
786 eglDestroySyncKHR(mSlots[slot].mEglDisplay, mSlots[slot].mEglFence); in freeBufferLocked()
871 mSlots[buf].mEglDisplay = display; in releaseBuffer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java124 private EGLDisplay mEglDisplay; field in ImageWallpaper.DrawableEngine
501 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
617 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
618 mEgl.eglDestroySurface(mEglDisplay, mEglSurface);
619 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
625 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY);
626 if (mEglDisplay == EGL_NO_DISPLAY) {
632 if (!mEgl.eglInitialize(mEglDisplay, version)) {
642 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
644 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null);
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1006 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start()
1008 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start()
1016 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start()
1024 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start()
1030 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start()
1059 if (mEglDisplay == null) { in createSurface()
1078 mEglDisplay, mEglConfig, view.getHolder()); in createSurface()
1095 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1140 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1155 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, in destroySurfaceImp()
[all …]
/frameworks/native/include/gui/
DBufferQueue.h337 : mEglDisplay(EGL_NO_DISPLAY), in BufferSlot()
355 EGLDisplay mEglDisplay; member
DSurfaceTexture.h365 EGLDisplay mEglDisplay; variable