Home
last modified time | relevance | path

Searched refs:mEglSurface (Results 1 – 18 of 18) 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.cpp36 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
122 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
152 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
183 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
210 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
298 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
306 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
332 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
340 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
380 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
[all …]
DSurfaceTextureMultiContextGL.h42 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
54 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
61 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.cpp113 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
171 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
217 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
357 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
418 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
479 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
DGLTest.h39 mEglSurface(EGL_NO_SURFACE), in GLTest()
63 EGLSurface mEglSurface; variable
DSurfaceTextureClient_test.cpp39 mEglSurface(EGL_NO_SURFACE), in SurfaceTextureClientTest()
79 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
81 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
87 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
98 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown()
121 EGLSurface mEglSurface; member in android::SurfaceTextureClientTest
204 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in TEST_F()
DSurfaceTextureGLThreadToGL_test.cpp169 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
/frameworks/av/media/libstagefright/tests/
DSurfaceMediaSource_test.cpp58 mEglSurface(EGL_NO_SURFACE), in GLTest()
108 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
117 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
121 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
128 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
133 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
135 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp()
146 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown()
147 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown()
157 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/libs/hwui/renderthread/
DCanvasContext.cpp77 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
78 mEglManager.destroySurface(mEglSurface); in setSurface()
79 mEglSurface = EGL_NO_SURFACE; in setSurface()
83 mEglSurface = mEglManager.createSurface(window); in setSurface()
86 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
88 mBufferPreserved = mEglManager.setPreserveBuffer(mEglSurface, preserveBuffer); in setSurface()
97 if (CC_UNLIKELY(!mEglManager.swapBuffers(mEglSurface, dirty, width, height))) { in swapBuffers()
104 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, in requireSurface()
149 mHaveNewSurface |= mEglManager.makeCurrent(mEglSurface, &error); in makeCurrent()
226 LOG_ALWAYS_FATAL_IF(!mCanvas || mEglSurface == EGL_NO_SURFACE, in draw()
[all …]
DCanvasContext.h130 EGLSurface mEglSurface = EGL_NO_SURFACE; variable
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
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/services/core/java/com/android/server/display/
DColorFade.java90 private EGLSurface mEglSurface; field in ColorFade
384 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
586 if (mEglSurface == null) {
591 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface,
593 if (mEglSurface == null) {
602 if (mEglSurface != null) {
603 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) {
606 mEglSurface = null;
644 if (mEglSurface == null) {
647 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/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.java127 private EGLSurface mEglSurface; field in ImageWallpaper.DrawableEngine
564 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL()
680 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
735 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null); in initGL()
736 if (mEglSurface == null || mEglSurface == EGL_NO_SURFACE) { in initGL()
747 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()