Home
last modified time | relevance | path

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

/frameworks/av/cmds/screenrecord/
DEglWindow.cpp38 if (mEglSurface != EGL_NO_SURFACE) { in createWindow()
53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow()
55 if (mEglSurface == EGL_NO_SURFACE) { in createWindow()
65 if (mEglSurface != EGL_NO_SURFACE) { in createPbuffer()
82 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); in createPbuffer()
83 if (mEglSurface == EGL_NO_SURFACE) { in createPbuffer()
93 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent()
169 if (mEglSurface != EGL_NO_SURFACE) { in eglRelease()
170 eglDestroySurface(mEglDisplay, mEglSurface); in eglRelease()
176 mEglSurface = EGL_NO_SURFACE; in eglRelease()
[all …]
DEglWindow.h37 mEglSurface(EGL_NO_SURFACE), in EglWindow()
77 EGLSurface mEglSurface; variable
/frameworks/native/libs/gui/tests/
DSurfaceTextureMultiContextGL_test.cpp37 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
129 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
161 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
193 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
221 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
314 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
322 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
349 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
357 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
397 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
[all …]
DSurfaceTextureMultiContextGL.h43 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
55 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
62 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
DSRGB_test.cpp58 mEglContext(EGL_NO_CONTEXT), mEglSurface(EGL_NO_SURFACE), in SRGBTest()
64 if (mEglSurface != EGL_NO_SURFACE) { in ~SRGBTest()
65 eglDestroySurface(mEglDisplay, mEglSurface); in ~SRGBTest()
241 EGLSurface mEglSurface; member in android::SRGBTest
281 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, in createEGLSurface()
284 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in createEGLSurface()
286 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in createEGLSurface()
384 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
417 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
450 EXPECT_TRUE(eglDestroySurface(mEglDisplay, mEglSurface)); in TEST_F()
[all …]
DGLTest.cpp77 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window); in SetUp()
84 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp()
88 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
95 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
100 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
102 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp()
113 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown()
114 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown()
124 if (mEglSurface != EGL_NO_SURFACE) { in TearDown()
125 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown()
DSurfaceTextureGLToGL_test.cpp119 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
178 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
225 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
370 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
434 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
498 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
DGLTest.h40 mEglSurface(EGL_NO_SURFACE), in GLTest()
65 EGLSurface mEglSurface; variable
DSurfaceTextureClient_test.cpp39 mEglSurface(EGL_NO_SURFACE), in SurfaceTextureClientTest()
80 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
82 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
88 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
99 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown()
122 EGLSurface mEglSurface; member in android::SurfaceTextureClientTest
205 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in TEST_F()
DSurfaceTextureGLThreadToGL_test.cpp177 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
/frameworks/av/media/libstagefright/tests/
DSurfaceMediaSource_test.cpp53 mEglSurface(EGL_NO_SURFACE), in GLTest()
103 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
112 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
116 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
123 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
128 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
130 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp()
141 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown()
142 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown()
152 if (mEglSurface != EGL_NO_SURFACE) { in TearDown()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java110 EGLSurface mEglSurface; field in BlockingGLTextureView.EglHelper
183 mEglSurface = null; in start()
216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in createSurface()
218 mEglSurface = null; in createSurface()
221 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface()
233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
268 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp()
272 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in destroySurfaceImp()
273 mEglSurface = null; in destroySurfaceImp()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DSingleFrameTextureViewTestActivity.java88 private EGLSurface mEglSurface; in onSurfaceTextureAvailable()
105 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in onSurfaceTextureAvailable()
122 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in onSurfaceTextureAvailable()
147 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in onSurfaceTextureAvailable()
149 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in onSurfaceTextureAvailable()
159 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in onSurfaceTextureAvailable()
DGLTextureViewActivity.java144 private EGLSurface mEglSurface; field in GLTextureViewActivity.RenderThread
238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run()
348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
353 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { in checkCurrent()
354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL()
385 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in initGL()
395 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
DImageFlipRenderThread.java98 private EGLSurface mEglSurface; field in ImageFlipRenderThread
191 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run()
301 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
306 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { in checkCurrent()
307 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
336 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL()
338 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in initGL()
348 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java91 private EGLSurface mEglSurface; field in ColorFade
405 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
607 if (mEglSurface == null) {
612 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface,
614 if (mEglSurface == null) {
623 if (mEglSurface != null) {
624 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) {
627 mEglSurface = null;
665 if (mEglSurface == null) {
668 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1058 mEglSurface = null; in start()
1095 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface()
1098 mEglSurface = null; in createSurface()
1101 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface()
1113 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1158 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1172 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp()
1178 view.mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in destroySurfaceImp()
1180 mEglSurface = null; in destroySurfaceImp()
1225 EGLSurface mEglSurface; field in GLSurfaceView.EglHelper
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.cpp102 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
103 mEglManager.destroySurface(mEglSurface); in setSurface()
104 mEglSurface = EGL_NO_SURFACE; in setSurface()
108 mEglSurface = mEglManager.createSurface(surface); in setSurface()
113 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
115 mBufferPreserved = mEglManager.setPreserveBuffer(mEglSurface, preserveBuffer); in setSurface()
149 if (mEglManager.isCurrent(mEglSurface)) { in setStopped()
190 mHaveNewSurface |= mEglManager.makeCurrent(mEglSurface, &error); in makeCurrent()
339 LOG_ALWAYS_FATAL_IF(!mCanvas || mEglSurface == EGL_NO_SURFACE, in draw()
354 Frame frame = mEglManager.beginFrame(mEglSurface); in draw()
[all …]
DCanvasContext.h191 EGLSurface mEglSurface = EGL_NO_SURFACE; variable
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java130 private EGLSurface mEglSurface; field in ImageWallpaper.DrawableEngine
618 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL()
734 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
789 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null); in initGL()
790 if (mEglSurface == null || mEglSurface == EGL_NO_SURFACE) { in initGL()
801 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()