Home
last modified time | relevance | path

Searched refs:mEglSurface (Results 1 – 19 of 19) 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/base/libs/hwui/pipeline/skia/
DSkiaOpenGLPipeline.cpp60 if (!mEglManager.makeCurrent(mEglSurface, &error)) { in makeCurrent()
67 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, in getFrame()
69 return mEglManager.beginFrame(mEglSurface); in getFrame()
148 if (mEglSurface != EGL_NO_SURFACE) { in onContextDestroyed()
149 mEglManager.destroySurface(mEglSurface); in onContextDestroyed()
150 mEglSurface = EGL_NO_SURFACE; in onContextDestroyed()
155 if (mEglManager.isCurrent(mEglSurface)) { in onStop()
161 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
162 mEglManager.destroySurface(mEglSurface); in setSurface()
163 mEglSurface = EGL_NO_SURFACE; in setSurface()
[all …]
DSkiaOpenGLPipeline.h60 EGLSurface mEglSurface = EGL_NO_SURFACE; 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.cpp79 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window); in SetUp()
86 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp()
90 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
97 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
102 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
104 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)); in SetUp()
115 if (mDisplaySecs > 0 && mEglSurface != EGL_NO_SURFACE) { in TearDown()
116 eglSwapBuffers(mEglDisplay, mEglSurface); in TearDown()
126 if (mEglSurface != EGL_NO_SURFACE) { in TearDown()
127 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.cpp37 mEglSurface(EGL_NO_SURFACE), in SurfaceTextureClientTest()
78 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
80 ASSERT_NE(EGL_NO_SURFACE, mEglSurface); in SetUp()
86 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
97 eglDestroySurface(mEglDisplay, mEglSurface); in TearDown()
120 EGLSurface mEglSurface; member in android::SurfaceTextureClientTest
203 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in TEST_F()
DSurfaceTextureGLThreadToGL_test.cpp177 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
/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/native/services/surfaceflinger/tests/
DBufferGenerator.cpp99 : mEglDisplay(EGL_NO_DISPLAY), mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT) {} in EglManager()
175 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], mSurface.get(), surfaceAttrs); in initialize()
176 if (mEglSurface == EGL_NO_SURFACE) { in initialize()
182 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
191 void makeCurrent() const { eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); } in makeCurrent()
193 void present() const { eglSwapBuffers(mEglDisplay, mEglSurface); } in present()
198 if (mEglSurface != EGL_NO_SURFACE) eglDestroySurface(mEglDisplay, mEglSurface); in cleanup()
208 EGLSurface mEglSurface; member in android::EglManager
/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/packages/SystemUI/src/com/android/systemui/glwallpaper/
DEglHelper.java94 private EGLSurface mEglSurface; field in EglHelper
215 mEglSurface = askCreatingEglWindowSurface(surfaceHolder, attrs, 0 /* offset */); in createEglSurface()
227 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createEglSurface()
248 eglDestroySurface(mEglDisplay, mEglSurface); in destroyEglSurface()
249 mEglSurface = EGL_NO_SURFACE; in destroyEglSurface()
258 return mEglSurface != null && mEglSurface != EGL_NO_SURFACE; in hasEglSurface()
328 boolean status = eglSwapBuffers(mEglDisplay, mEglSurface); in swapBuffer()
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java97 private EGLSurface mEglSurface; field in ColorFade
410 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
619 if (mEglSurface == null) {
632 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface,
634 if (mEglSurface == null) {
643 if (mEglSurface != null) {
644 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) {
647 mEglSurface = null;
676 if (mEglSurface == null) {
679 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1070 mEglSurface = null; in start()
1107 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface()
1110 mEglSurface = null; in createSurface()
1113 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { in createSurface()
1125 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1170 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1184 if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) { in destroySurfaceImp()
1190 view.mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in destroySurfaceImp()
1192 mEglSurface = null; in destroySurfaceImp()
1237 EGLSurface mEglSurface; field in GLSurfaceView.EglHelper