Home
last modified time | relevance | path

Searched refs:mEglSurface (Results 1 – 21 of 21) 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.cpp59 if (!mEglManager.makeCurrent(mEglSurface, &error)) { in makeCurrent()
66 LOG_ALWAYS_FATAL_IF(mEglSurface == EGL_NO_SURFACE, in getFrame()
68 return mEglManager.beginFrame(mEglSurface); in getFrame()
147 if (mEglSurface != EGL_NO_SURFACE) { in onContextDestroyed()
148 mEglManager.destroySurface(mEglSurface); in onContextDestroyed()
149 mEglSurface = EGL_NO_SURFACE; in onContextDestroyed()
154 if (mEglManager.isCurrent(mEglSurface)) { in onStop()
174 if (mEglSurface != EGL_NO_SURFACE) { in setSurface()
175 mEglManager.destroySurface(mEglSurface); in setSurface()
176 mEglSurface = EGL_NO_SURFACE; in setSurface()
[all …]
DSkiaOpenGLPipeline.h59 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.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/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/packages/SystemUI/src/com/android/systemui/glwallpaper/
DEglHelper.java70 private EGLSurface mEglSurface; field in EglHelper
149 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, surfaceHolder, null, 0); in createEglSurface()
150 if (mEglSurface == null || mEglSurface == EGL_NO_SURFACE) { in createEglSurface()
155 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createEglSurface()
169 eglDestroySurface(mEglDisplay, mEglSurface); in destroyEglSurface()
170 mEglSurface = null; in destroyEglSurface()
179 return mEglSurface != null && mEglSurface != EGL_NO_SURFACE; in hasEglSurface()
220 boolean status = eglSwapBuffers(mEglDisplay, mEglSurface); in swapBuffer()
/frameworks/native/services/surfaceflinger/tests/
DBufferGenerator.cpp95 : mEglDisplay(EGL_NO_DISPLAY), mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT) {} in EglManager()
171 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], mSurface.get(), surfaceAttrs); in initialize()
172 if (mEglSurface == EGL_NO_SURFACE) { in initialize()
178 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
187 void makeCurrent() const { eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); } in makeCurrent()
189 void present() const { eglSwapBuffers(mEglDisplay, mEglSurface); } in present()
194 if (mEglSurface != EGL_NO_SURFACE) eglDestroySurface(mEglDisplay, mEglSurface); in cleanup()
204 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/native/services/surfaceflinger/tests/hwc2/
DHwc2TestBuffer.cpp120 mEglSurface(EGL_NO_SURFACE), in Hwc2TestEglManager()
185 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], in initialize()
187 if (mEglSurface == EGL_NO_SURFACE) { in initialize()
193 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
204 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in makeCurrent()
209 eglSwapBuffers(mEglDisplay, mEglSurface); in present()
217 if (mEglSurface != EGL_NO_SURFACE) in cleanup()
218 eglDestroySurface(mEglDisplay, mEglSurface); in cleanup()
230 EGLSurface mEglSurface; member in Hwc2TestEglManager
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java93 private EGLSurface mEglSurface; field in ColorFade
403 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
609 if (mEglSurface == null) {
614 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface,
616 if (mEglSurface == null) {
625 if (mEglSurface != null) {
626 if (!EGL14.eglDestroySurface(mEglDisplay, mEglSurface)) {
629 mEglSurface = null;
667 if (mEglSurface == null) {
670 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
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt51878 Landroid/opengl/GLSurfaceView$EglHelper;->mEglSurface:Ljavax/microedition/khronos/egl/EGLSurface;