Home
last modified time | relevance | path

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

/frameworks/av/cmds/screenrecord/
DEglWindow.cpp37 if (mEglSurface != EGL_NO_SURFACE) { in createWindow()
52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow()
54 if (mEglSurface == EGL_NO_SURFACE) { in createWindow()
64 if (mEglSurface != EGL_NO_SURFACE) { in createPbuffer()
81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); in createPbuffer()
82 if (mEglSurface == EGL_NO_SURFACE) { in createPbuffer()
92 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent()
168 if (mEglSurface != EGL_NO_SURFACE) { in eglRelease()
169 eglDestroySurface(mEglDisplay, mEglSurface); in eglRelease()
175 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()
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.cpp40 mEglSurface(EGL_NO_SURFACE), in SurfaceTextureClientTest()
81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
83 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
89 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
100 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown()
123 EGLSurface mEglSurface; member in android::SurfaceTextureClientTest
206 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/libs/hwui/pipeline/skia/
DSkiaOpenGLPipeline.cpp50 if (!mEglManager.makeCurrent(mEglSurface, &error)) { in makeCurrent()
57 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, in getFrame()
59 return mEglManager.beginFrame(mEglSurface); in getFrame()
154 if (mEglManager.isCurrent(mEglSurface)) { in onStop()
162 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
163 mEglManager.destroySurface(mEglSurface); in setSurface()
164 mEglSurface = EGL_NO_SURFACE; in setSurface()
169 mEglSurface = mEglManager.createSurface(surface, wideColorGamut); in setSurface()
172 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
174 mBufferPreserved = mEglManager.setPreserveBuffer(mEglSurface, preserveBuffer); in setSurface()
[all …]
DSkiaOpenGLPipeline.h58 EGLSurface mEglSurface = EGL_NO_SURFACE; variable
/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/libs/hwui/renderthread/
DOpenGLPipeline.cpp43 bool haveNewSurface = mEglManager.makeCurrent(mEglSurface, &error); in makeCurrent()
53 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, in getFrame()
55 return mEglManager.beginFrame(mEglSurface); in getFrame()
144 if (mEglManager.isCurrent(mEglSurface)) { in onStop()
151 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
152 mEglManager.destroySurface(mEglSurface); in setSurface()
153 mEglSurface = EGL_NO_SURFACE; in setSurface()
158 mEglSurface = mEglManager.createSurface(surface, wideColorGamut); in setSurface()
161 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
163 mBufferPreserved = mEglManager.setPreserveBuffer(mEglSurface, preserveBuffer); in setSurface()
[all …]
DOpenGLPipeline.h69 EGLSurface mEglSurface = EGL_NO_SURFACE; variable
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestBuffer.cpp117 mEglSurface(EGL_NO_SURFACE), in Hwc2TestEglManager()
182 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], in initialize()
184 if (mEglSurface == EGL_NO_SURFACE) { in initialize()
190 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
201 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in makeCurrent()
206 eglSwapBuffers(mEglDisplay, mEglSurface); in present()
214 if (mEglSurface != EGL_NO_SURFACE) in cleanup()
215 eglDestroySurface(mEglDisplay, mEglSurface); in cleanup()
227 EGLSurface mEglSurface; member in Hwc2TestEglManager
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java91 private EGLSurface mEglSurface; field in ColorFade
405 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
612 if (mEglSurface == null) {
617 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface,
619 if (mEglSurface == null) {
628 if (mEglSurface != null) {
629 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) {
632 mEglSurface = null;
670 if (mEglSurface == null) {
673 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1069 mEglSurface = null; in start()
1106 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface()
1109 mEglSurface = null; in createSurface()
1112 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface()
1124 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1169 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1183 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp()
1189 view.mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in destroySurfaceImp()
1191 mEglSurface = null; in destroySurfaceImp()
1236 EGLSurface mEglSurface; field in GLSurfaceView.EglHelper
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java124 private EGLSurface mEglSurface; field in ImageWallpaper.DrawableEngine
611 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL()
652 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL()
768 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
823 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null); in initGL()
824 if (mEglSurface == null || mEglSurface == EGL_NO_SURFACE) { in initGL()
835 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()