Home
last modified time | relevance | path

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

12

/frameworks/native/opengl/tests/EGLTest/
DEGL_test.cpp68 EGLDisplay mEglDisplay; member in android::EGLTest
72 mEglDisplay(EGL_NO_DISPLAY) { in EGLTest()
76 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
77 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
82 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
89 EGLBoolean success = eglTerminate(mEglDisplay); in TearDown()
106 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
113 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
116 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
119 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.cpp39 mEglDisplay(EGL_NO_DISPLAY), in SurfaceTextureClientTest()
62 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
64 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
67 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
72 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), in SetUp()
81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
85 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); in SetUp()
89 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
98 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TearDown()
99 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()
DSurfaceTextureGLThreadToGL_test.cpp177 eglSwapBuffers(mEglDisplay, mEglSurface); in TEST_F()
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp90 , mEglDisplay(EGL_NO_DISPLAY) in EglManager()
102 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize()
103 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "Failed to get EGL_DEFAULT_DISPLAY! err=%s", in initialize()
107 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE, in initialize()
108 "Failed to initialize display %p! err=%s", mEglDisplay, eglErrorString()); in initialize()
152 auto extensions = StringUtils::split(eglQueryString(mEglDisplay, EGL_EXTENSIONS)); in initExtensions()
176 return mEglDisplay != EGL_NO_DISPLAY; in hasEglContext()
204 if (!eglChooseConfig(mEglDisplay, attribs, &mEglConfig, numConfigs, &numConfigs) || in loadConfigs()
241 if (!eglChooseConfig(mEglDisplay, attribs16F, &mEglConfigWideGamut, numConfigs, in loadConfigs()
262 mEglDisplay, EglExtensions.noConfigContext ? ((EGLConfig) nullptr) : mEglConfig, in createContext()
[all …]
DEglManager.h77 EGLDisplay mEglDisplay; variable
/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/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/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/native/libs/gui/
DGLConsumer.cpp145 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer()
174 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer()
277 err = syncForReleaseLocked(mEglDisplay); in releaseTexImage()
287 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage()
392 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
400 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
409 err = mEglSlots[slot].mEglImage->createIfNeeded(mEglDisplay, item.mCrop); in updateAndReleaseLocked()
412 mEglDisplay, slot); in updateAndReleaseLocked()
414 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
420 err = syncForReleaseLocked(mEglDisplay); in updateAndReleaseLocked()
[all …]
DBufferQueueCore.cpp216 eglDestroySyncKHR(mSlots[slot].mEglDisplay, mSlots[slot].mEglFence); in clearBufferSlotLocked()
220 mSlots[slot].mEglDisplay = EGL_NO_DISPLAY; in clearBufferSlotLocked()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestBuffer.cpp119 : mEglDisplay(EGL_NO_DISPLAY), in Hwc2TestEglManager()
132 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize()
133 if (mEglDisplay == EGL_NO_DISPLAY) return false; in initialize()
137 if (!eglInitialize(mEglDisplay, &major, &minor)) { in initialize()
158 if (!eglChooseConfig(mEglDisplay, configAttrs, configs, 1, in initialize()
162 eglTerminate(mEglDisplay); in initialize()
169 eglTerminate(mEglDisplay); in initialize()
176 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT, in initialize()
185 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], in initialize()
193 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
[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.java88 private EGLDisplay mEglDisplay; field in ColorFade
401 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
511 if (mEglDisplay == null) {
512 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY);
513 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) {
519 if (!EGL14.eglInitialize(mEglDisplay, version, 0, version, 1)) {
520 mEglDisplay = null;
538 if (!EGL14.eglChooseConfig(mEglDisplay, eglConfigAttribList, 0,
556 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig,
612 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface,
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1035 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start()
1037 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start()
1045 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start()
1053 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start()
1059 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start()
1088 if (mEglDisplay == null) { in createSurface()
1107 mEglDisplay, mEglConfig, view.getHolder()); in createSurface()
1124 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1169 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1184 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.h258 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence); in releaseBufferLocked()
340 EGLDisplay mEglDisplay; variable
466 EGLDisplay mEglDisplay; variable

12