Home
last modified time | relevance | path

Searched refs:mEglDisplay (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/native/opengl/tests/EGLTest/
DEGL_test.cpp67 EGLDisplay mEglDisplay; member in android::EGLTest
71 mEglDisplay(EGL_NO_DISPLAY) { in EGLTest()
75 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
76 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
81 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
88 EGLBoolean success = eglTerminate(mEglDisplay); in TearDown()
105 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
112 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
115 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
118 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
[all …]
/frameworks/native/libs/gui/tests/
DSurfaceTextureGLToGL_test.cpp39 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, in TEST_F()
46 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F()
50 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F()
68 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F()
71 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F()
93 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, in TEST_F()
98 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F()
116 eglSwapBuffers(mEglDisplay, mProducerEglSurface); in TEST_F()
119 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
163 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, in TEST_F()
[all …]
DSurfaceTextureMultiContextGL.h38 mSecondEglContext = eglCreateContext(mEglDisplay, mGlConfig, in SetUp()
43 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
50 mThirdEglContext = eglCreateContext(mEglDisplay, mGlConfig, in SetUp()
55 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
62 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
68 eglDestroyContext(mEglDisplay, mThirdEglContext); in TearDown()
71 eglDestroyContext(mEglDisplay, mSecondEglContext); in TearDown()
DGLTest.cpp36 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
38 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
42 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
48 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 1, in SetUp()
79 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window); in SetUp()
86 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp()
92 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 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()
[all …]
DSurfaceTextureMultiContextGL_test.cpp37 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
112 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, 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()
294 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, 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()
[all …]
DSurfaceTextureGLToGL.h40 mProducerEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUpWindowAndContext()
45 mProducerEglContext = eglCreateContext(mEglDisplay, mGlConfig, in SetUpWindowAndContext()
53 eglDestroyContext(mEglDisplay, mProducerEglContext); in TearDown()
56 eglDestroySurface(mEglDisplay, mProducerEglSurface); in TearDown()
DSurfaceTextureClient_test.cpp36 mEglDisplay(EGL_NO_DISPLAY), in SurfaceTextureClientTest()
59 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
61 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
64 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
69 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), in SetUp()
78 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
82 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, nullptr); in SetUp()
86 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
95 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TearDown()
96 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
[all …]
DGLTest.h39 mEglDisplay(EGL_NO_DISPLAY), in GLTest()
64 EGLDisplay mEglDisplay; variable
DSurfaceTextureGLThreadToGL.h172 producerThread->setEglObjects(mEglDisplay, mProducerEglSurface, in runProducerThread()
/frameworks/av/cmds/screenrecord/
DEglWindow.cpp52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow()
81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); in createPbuffer()
92 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent()
102 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in eglSetupContext()
103 if (mEglDisplay == EGL_NO_DISPLAY) { in eglSetupContext()
109 result = eglInitialize(mEglDisplay, &majorVersion, &minorVersion); in eglSetupContext()
136 result = eglChooseConfig(mEglDisplay, in eglSetupContext()
148 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in eglSetupContext()
160 if (mEglDisplay != EGL_NO_DISPLAY) { in eglRelease()
161 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in eglRelease()
[all …]
DEglWindow.h35 mEglDisplay(EGL_NO_DISPLAY), in EglWindow()
75 EGLDisplay mEglDisplay; variable
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp89 : mEglDisplay(EGL_NO_DISPLAY) in EglManager()
110 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize()
111 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "Failed to get EGL_DEFAULT_DISPLAY! err=%s", in initialize()
115 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE, in initialize()
116 "Failed to initialize display %p! err=%s", mEglDisplay, eglErrorString()); in initialize()
295 auto extensions = StringUtils::split(eglQueryString(mEglDisplay, EGL_EXTENSIONS)); in initExtensions()
321 return mEglDisplay != EGL_NO_DISPLAY; in hasEglContext()
328 mEglConfig = load8BitsConfig(mEglDisplay, mSwapBehavior); in loadConfigs()
334 mEglConfig = load8BitsConfig(mEglDisplay, mSwapBehavior); in loadConfigs()
343 mEglConfigF16 = loadFP16Config(mEglDisplay, mSwapBehavior); in loadConfigs()
[all …]
DEglManager.h72 EGLDisplay eglDisplay() const { return mEglDisplay; } in eglDisplay()
100 EGLDisplay mEglDisplay; variable
/frameworks/native/libs/nativedisplay/surfacetexture/
DEGLConsumer.cpp86 EGLConsumer::EGLConsumer() : mEglDisplay(EGL_NO_DISPLAY), mEglContext(EGL_NO_CONTEXT) {} in EGLConsumer()
146 err = syncForReleaseLocked(mEglDisplay, st); in releaseTexImage()
153 err = st.releaseBufferLocked(buf, st.mSlots[buf].mGraphicBuffer, mEglDisplay, in releaseTexImage()
237 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
244 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
253 err = mEglSlots[slot].mEglImage->createIfNeeded(mEglDisplay); in updateAndReleaseLocked()
255 EGC_LOGW("updateAndRelease: unable to createImage on display=%p slot=%d", mEglDisplay, in updateAndReleaseLocked()
257 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
263 err = syncForReleaseLocked(mEglDisplay, st); in updateAndReleaseLocked()
269 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, in updateAndReleaseLocked()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DBufferGenerator.cpp99 : mEglDisplay(EGL_NO_DISPLAY), mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT) {} in EglManager()
106 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize()
107 if (mEglDisplay == EGL_NO_DISPLAY) return false; in initialize()
111 if (!eglInitialize(mEglDisplay, &major, &minor)) { in initialize()
137 if (!eglChooseConfig(mEglDisplay, configAttrs, configs, 1, &configCnt)) { in initialize()
140 eglTerminate(mEglDisplay); in initialize()
147 eglTerminate(mEglDisplay); in initialize()
154 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT, attrs); in initialize()
162 if (!eglQueryContext(mEglDisplay, mEglContext, EGL_CONTEXT_CLIENT_VERSION, &majorVersion)) { in initialize()
175 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], mSurface.get(), surfaceAttrs); in initialize()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java109 EGLDisplay mEglDisplay; field in BlockingGLTextureView.EglHelper
118 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { in chooseEglConfig()
157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start()
159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start()
167 if (!mEgl.eglInitialize(mEglDisplay, version)) { in start()
176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in start()
199 if (mEglDisplay == null) { in createSurface()
216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in createSurface()
233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
[all …]
/frameworks/native/libs/gui/
DGLConsumer.cpp120 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer()
149 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer()
252 err = syncForReleaseLocked(mEglDisplay); in releaseTexImage()
262 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage()
367 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
375 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
384 err = mEglSlots[slot].mEglImage->createIfNeeded(mEglDisplay); in updateAndReleaseLocked()
387 mEglDisplay, slot); in updateAndReleaseLocked()
389 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
395 err = syncForReleaseLocked(mEglDisplay); in updateAndReleaseLocked()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DSingleFrameTextureViewTestActivity.java85 private EGLDisplay mEglDisplay; in onSurfaceTextureAvailable()
105 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in onSurfaceTextureAvailable()
121 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in onSurfaceTextureAvailable()
122 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in onSurfaceTextureAvailable()
128 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in onSurfaceTextureAvailable()
129 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in onSurfaceTextureAvailable()
135 if (!mEgl.eglInitialize(mEglDisplay, version)) { in onSurfaceTextureAvailable()
145 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in onSurfaceTextureAvailable()
147 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in onSurfaceTextureAvailable()
159 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in onSurfaceTextureAvailable()
[all …]
DGLTextureViewActivity.java141 private EGLDisplay mEglDisplay; field in GLTextureViewActivity.RenderThread
238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run()
347 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
364 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL()
365 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL()
371 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL()
383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL()
[all …]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
DImageFlipRenderThread.java95 private EGLDisplay mEglDisplay; field in ImageFlipRenderThread
191 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run()
300 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
301 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
307 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
317 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL()
318 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL()
324 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
334 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL()
336 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java99 private EGLDisplay mEglDisplay; field in ColorFade
451 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
617 if (mEglDisplay == null) {
618 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY);
619 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) {
625 if (!EGL14.eglInitialize(mEglDisplay, version, 0, version, 1)) {
626 mEglDisplay = null;
644 if (!EGL14.eglChooseConfig(mEglDisplay, eglConfigAttribList, 0,
660 EGL14.eglDestroyContext(mEglDisplay, mEglContext);
674 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL14.EGL_NO_CONTEXT,
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1036 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start()
1038 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start()
1046 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start()
1054 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start()
1060 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start()
1089 if (mEglDisplay == null) { in createSurface()
1108 mEglDisplay, mEglConfig, view.getHolder()); in createSurface()
1125 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1170 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1185 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, in destroySurfaceImp()
[all …]
/frameworks/native/libs/gui/include/gui/
DBufferSlot.h178 mEglDisplay(EGL_NO_DISPLAY), in BufferSlot()
193 EGLDisplay mEglDisplay; member
DGLConsumer.h259 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence); in releaseBufferLocked()
340 EGLDisplay mEglDisplay; variable
466 EGLDisplay mEglDisplay; variable
/frameworks/native/libs/nativedisplay/include/surfacetexture/
DEGLConsumer.h206 EGLDisplay mEglDisplay; variable
275 EGLDisplay mEglDisplay; variable

12