Home
last modified time | relevance | path

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

12

/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()
DSRGB_test.cpp57 mEglDisplay(EGL_NO_DISPLAY), mEglConfig(), in SRGBTest()
63 if (mEglDisplay != EGL_NO_DISPLAY) { in ~SRGBTest()
65 eglDestroySurface(mEglDisplay, mEglSurface); in ~SRGBTest()
68 eglDestroyContext(mEglDisplay, mEglContext); in ~SRGBTest()
70 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in ~SRGBTest()
72 eglTerminate(mEglDisplay); in ~SRGBTest()
238 EGLDisplay mEglDisplay; member in android::SRGBTest
250 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in createEGLSurface()
252 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in createEGLSurface()
254 EXPECT_TRUE(eglInitialize(mEglDisplay, NULL, NULL)); in createEGLSurface()
[all …]
DGLTest.cpp34 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
36 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
40 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
46 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 1, in SetUp()
77 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window); in SetUp()
84 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, in SetUp()
90 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 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()
[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 …]
DSurfaceTextureClient_test.cpp38 mEglDisplay(EGL_NO_DISPLAY), in SurfaceTextureClientTest()
61 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
63 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
66 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
71 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), in SetUp()
80 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); in SetUp()
84 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); in SetUp()
88 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
97 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TearDown()
98 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
[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()
DGLTest.h39 mEglDisplay(EGL_NO_DISPLAY), in GLTest()
64 EGLDisplay mEglDisplay; variable
DSurfaceTextureGLThreadToGL.h172 producerThread->setEglObjects(mEglDisplay, mProducerEglSurface, in runProducerThread()
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp90 , mEglDisplay(EGL_NO_DISPLAY) in EglManager()
104 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize()
105 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, in initialize()
109 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE, in initialize()
110 "Failed to initialize display %p! err=%s", mEglDisplay, egl_error_str()); in initialize()
136 eglQueryString(mEglDisplay, EGL_EXTENSIONS)); in initExtensions()
144 return mEglDisplay != EGL_NO_DISPLAY; in hasEglContext()
165 if (!eglChooseConfig(mEglDisplay, attribs, &mEglConfig, num_configs, &num_configs) in loadConfig()
184 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, attribs); in createContext()
216 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, in createPBufferSurface()
[all …]
DEglManager.h102 EGLDisplay mEglDisplay; variable
/frameworks/native/opengl/tests/EGLTest/
DEGL_test.cpp29 EGLDisplay mEglDisplay; member in android::EGLTest
33 mEglDisplay(EGL_NO_DISPLAY) { in EGLTest()
37 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
38 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
43 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
50 EGLBoolean success = eglTerminate(mEglDisplay); in TearDown()
67 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
74 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
77 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
80 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
[all …]
/frameworks/av/cmds/screenrecord/
DEglWindow.cpp53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow()
82 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); in createPbuffer()
93 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent()
103 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in eglSetupContext()
104 if (mEglDisplay == EGL_NO_DISPLAY) { in eglSetupContext()
110 result = eglInitialize(mEglDisplay, &majorVersion, &minorVersion); in eglSetupContext()
137 result = eglChooseConfig(mEglDisplay, in eglSetupContext()
149 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in eglSetupContext()
161 if (mEglDisplay != EGL_NO_DISPLAY) { in eglRelease()
162 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.cpp167 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer()
195 mEglDisplay(EGL_NO_DISPLAY), in GLConsumer()
298 err = syncForReleaseLocked(mEglDisplay); in releaseTexImage()
308 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage()
411 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
419 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
428 err = mEglSlots[slot].mEglImage->createIfNeeded(mEglDisplay, item.mCrop); in updateAndReleaseLocked()
431 mEglDisplay, slot); in updateAndReleaseLocked()
433 mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
439 err = syncForReleaseLocked(mEglDisplay); in updateAndReleaseLocked()
[all …]
/frameworks/av/media/libstagefright/tests/
DSurfaceMediaSource_test.cpp52 mEglDisplay(EGL_NO_DISPLAY), in GLTest()
59 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
61 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
65 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
71 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, in SetUp()
103 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
112 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, in SetUp()
118 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp()
123 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
128 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); in SetUp()
[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/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java127 private EGLDisplay mEglDisplay; field in ImageWallpaper.DrawableEngine
618 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL()
733 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in finishGL()
734 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL()
735 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
736 mEgl.eglTerminate(mEglDisplay); in finishGL()
742 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY); in initGL()
743 if (mEglDisplay == EGL_NO_DISPLAY) { in initGL()
749 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
759 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java88 private EGLDisplay mEglDisplay; field in ColorFade
405 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); in draw()
518 if (mEglDisplay == null) {
519 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY);
520 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) {
526 if (!EGL14.eglInitialize(mEglDisplay, version, 0, version, 1)) {
527 mEglDisplay = null;
545 if (!EGL14.eglChooseConfig(mEglDisplay, eglConfigAttribList, 0,
558 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig,
612 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface,
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1024 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start()
1026 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start()
1034 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start()
1042 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start()
1048 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start()
1077 if (mEglDisplay == null) { in createSurface()
1096 mEglDisplay, mEglConfig, view.getHolder()); in createSurface()
1113 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1158 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in swap()
1173 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, in destroySurfaceImp()
[all …]
/frameworks/native/include/gui/
DBufferSlot.h178 mEglDisplay(EGL_NO_DISPLAY), in BufferSlot()
193 EGLDisplay mEglDisplay; member
DGLConsumer.h257 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence); in releaseBufferLocked()
341 EGLDisplay mEglDisplay; variable
460 EGLDisplay mEglDisplay; variable

12