Home
last modified time | relevance | path

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

/frameworks/base/opengl/tests/EGLTest/
DEGL_test.cpp27 EGLDisplay mEglDisplay; member in android::EGLTest
31 mEglDisplay(EGL_NO_DISPLAY) { in EGLTest()
35 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
36 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
41 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
48 EGLBoolean success = eglTerminate(mEglDisplay); in TearDown()
65 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
72 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
75 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
78 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
[all …]
/frameworks/base/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.java138 private EGLDisplay mEglDisplay; field in GLTextureViewActivity.RenderThread
234 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run()
343 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
344 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
350 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
360 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL()
361 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL()
367 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
377 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL()
379 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL()
[all …]
/frameworks/base/libs/gui/tests/
DSurfaceTextureClient_test.cpp27 mEglDisplay(EGL_NO_DISPLAY), in SurfaceTextureClientTest()
40 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
42 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
45 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
50 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), in SetUp()
58 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
62 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); in SetUp()
66 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
75 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TearDown()
76 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
[all …]
DSurfaceTexture_test.cpp44 mEglDisplay(EGL_NO_DISPLAY), in GLTest()
50 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
52 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
56 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
62 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, in SetUp()
94 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
102 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp()
108 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp()
113 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
118 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java981 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start()
983 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start()
991 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start()
994 mEglConfig = mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start()
1000 mEglContext = mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start()
1026 if (mEglDisplay == null) { in createSurface()
1042 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, in createSurface()
1044 mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in createSurface()
1051 mEglDisplay, mEglConfig, holder); in createSurface()
1066 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
[all …]
/frameworks/media/libvideoeditor/lvpp/
DNativeWindowRenderer.cpp188 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initializeEGL()
193 eglInitialize(mEglDisplay, &majorVersion, &minorVersion); in initializeEGL()
206 eglChooseConfig(mEglDisplay, configAttribs, &config, 1, &numConfigs); in initializeEGL()
209 mEglSurface = eglCreateWindowSurface(mEglDisplay, config, in initializeEGL()
214 mEglContext = eglCreateContext(mEglDisplay, config, EGL_NO_CONTEXT, in initializeEGL()
218 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in initializeEGL()
223 eglDestroyContext(mEglDisplay, mEglContext); in terminateEGL()
224 eglDestroySurface(mEglDisplay, mEglSurface); in terminateEGL()
225 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in terminateEGL()
226 eglTerminate(mEglDisplay); in terminateEGL()
[all …]
DNativeWindowRenderer.h88 EGLDisplay mEglDisplay; variable
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java115 private EGLDisplay mEglDisplay; field in ImageWallpaper.DrawableEngine
431 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
549 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
550 mEgl.eglDestroySurface(mEglDisplay, mEglSurface);
551 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
557 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY);
558 if (mEglDisplay == EGL_NO_DISPLAY) {
564 if (!mEgl.eglInitialize(mEglDisplay, version)) {
574 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
576 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null);
[all …]
/frameworks/base/include/gui/
DSurfaceTexture.h261 mEglDisplay(EGL_NO_DISPLAY), in BufferSlot()
278 EGLDisplay mEglDisplay; member
/frameworks/base/libs/gui/
DSurfaceTexture.cpp424 eglDestroyImageKHR(mSlots[buf].mEglDisplay, mSlots[buf].mEglImage); in dequeueBuffer()
426 mSlots[buf].mEglDisplay = EGL_NO_DISPLAY; in dequeueBuffer()
690 mSlots[buf].mEglDisplay = dpy; in updateTexImage()
881 eglDestroyImageKHR(mSlots[i].mEglDisplay, mSlots[i].mEglImage); in freeBufferLocked()
883 mSlots[i].mEglDisplay = EGL_NO_DISPLAY; in freeBufferLocked()