Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/tests/
DSurfaceMediaSource_test.cpp56 mEglSurface(EGL_NO_SURFACE), in GLTest()
106 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
115 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
119 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
126 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
131 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
133 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp()
144 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown()
145 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown()
155 if (mEglSurface != EGL_NO_SURFACE) { in TearDown()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLTextureViewActivity.java145 private EGLSurface mEglSurface; field in GLTextureViewActivity.RenderThread
239 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run()
349 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
354 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { in checkCurrent()
355 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
384 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL()
386 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in initGL()
396 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
/frameworks/native/libs/gui/tests/
DSurfaceTexture_test.cpp45 mEglSurface(EGL_NO_SURFACE), in GLTest()
99 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
107 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp()
111 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
118 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
123 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
125 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp()
136 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown()
137 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown()
147 if (mEglSurface != EGL_NO_SURFACE) { in TearDown()
[all …]
DSurfaceTextureClient_test.cpp33 mEglSurface(EGL_NO_SURFACE), in SurfaceTextureClientTest()
68 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
70 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
76 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
87 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown()
110 EGLSurface mEglSurface; member in android::SurfaceTextureClientTest
/frameworks/base/core/java/android/view/
DHardwareRenderer.java604 EGLSurface mEglSurface; field in HardwareRenderer.GlRenderer
919 if (!sEgl.eglMakeCurrent(sEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createEglSurface()
977 if (mEglSurface != null && mEglSurface != EGL_NO_SURFACE) { in destroySurface()
979 sEgl.eglDestroySurface(sEglDisplay, mEglSurface); in destroySurface()
980 mEglSurface = null; in destroySurface()
990 if (mEglSurface != null && mEglSurface != EGL_NO_SURFACE) { in invalidate()
991 sEgl.eglDestroySurface(sEglDisplay, mEglSurface); in invalidate()
992 mEglSurface = null; in invalidate()
1010 mEglSurface = sEgl.eglCreateWindowSurface(sEglDisplay, sEglConfig, holder, null); in createSurface()
1012 if (mEglSurface == null || mEglSurface == EGL_NO_SURFACE) { in createSurface()
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1040 mEglSurface = null; in start()
1077 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface()
1080 mEglSurface = null; in createSurface()
1083 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface()
1095 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1140 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1154 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp()
1160 view.mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in destroySurfaceImp()
1162 mEglSurface = null; in destroySurfaceImp()
1207 EGLSurface mEglSurface; field in GLSurfaceView.EglHelper
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java118 private EGLSurface mEglSurface; field in ImageWallpaper.DrawableEngine
439 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
558 mEgl.eglDestroySurface(mEglDisplay, mEglSurface);
584 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null);
586 if (mEglSurface == null || mEglSurface == EGL_NO_SURFACE) {
596 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/frameworks/av/libvideoeditor/lvpp/
DNativeWindowRenderer.cpp208 mEglSurface = eglCreateWindowSurface(mEglDisplay, config, in initializeEGL()
217 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in initializeEGL()
223 eglDestroySurface(mEglDisplay, mEglSurface); in terminateEGL()
377 eglSwapBuffers(mEglDisplay, mEglSurface); in render()
DNativeWindowRenderer.h89 EGLSurface mEglSurface; variable