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.cpp52 mEglContext(EGL_NO_CONTEXT), mEglSurface(EGL_NO_SURFACE), in SRGBTest()
58 if (mEglSurface != EGL_NO_SURFACE) { in ~SRGBTest()
59 eglDestroySurface(mEglDisplay, mEglSurface); in ~SRGBTest()
234 EGLSurface mEglSurface; member in android::SRGBTest
274 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, in createEGLSurface()
277 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in createEGLSurface()
279 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in createEGLSurface()
376 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
407 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
439 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()
352 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
413 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
474 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
DGLTest.h39 mEglSurface(EGL_NO_SURFACE), in GLTest()
63 EGLSurface mEglSurface; variable
DSurfaceTextureClient_test.cpp36 mEglSurface(EGL_NO_SURFACE), in SurfaceTextureClientTest()
76 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
78 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
84 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
95 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown()
118 EGLSurface mEglSurface; member in android::SurfaceTextureClientTest
201 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.cpp57 mEglSurface(EGL_NO_SURFACE), in GLTest()
107 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
116 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
120 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
127 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
132 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
134 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp()
145 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown()
146 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown()
156 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.cpp44 , mEglSurface(EGL_NO_SURFACE) in CanvasContext()
78 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
79 mEglManager.destroySurface(mEglSurface); in setSurface()
80 mEglSurface = EGL_NO_SURFACE; in setSurface()
84 mEglSurface = mEglManager.createSurface(window); in setSurface()
87 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
89 mBufferPreserved = mEglManager.setPreserveBuffer(mEglSurface, preserveBuffer); in setSurface()
98 if (CC_UNLIKELY(!mEglManager.swapBuffers(mEglSurface))) { in swapBuffers()
105 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, in requireSurface()
144 mHaveNewSurface |= mEglManager.makeCurrent(mEglSurface); in makeCurrent()
[all …]
DCanvasContext.h123 EGLSurface mEglSurface; 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.java93 private EGLSurface mEglSurface; field in ColorFade
387 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
589 if (mEglSurface == null) {
594 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface,
596 if (mEglSurface == null) {
605 if (mEglSurface != null) {
606 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) {
609 mEglSurface = null;
647 if (mEglSurface == null) {
650 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1039 mEglSurface = null; in start()
1076 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface()
1079 mEglSurface = null; in createSurface()
1082 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface()
1094 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1139 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1153 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp()
1159 view.mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in destroySurfaceImp()
1161 mEglSurface = null; in destroySurfaceImp()
1206 EGLSurface mEglSurface; field in GLSurfaceView.EglHelper
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java126 private EGLSurface mEglSurface; field in ImageWallpaper.DrawableEngine
533 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL()
649 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
704 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null); in initGL()
705 if (mEglSurface == null || mEglSurface == EGL_NO_SURFACE) { in initGL()
716 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()