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

12

/frameworks/native/libs/gui/tests/
H A DSurfaceTextureMultiContextGL.h38 mSecondEglContext = eglCreateContext(mEglDisplay, mGlConfig,
43 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
50 mThirdEglContext = eglCreateContext(mEglDisplay, mGlConfig,
55 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
62 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
68 eglDestroyContext(mEglDisplay, mThirdEglContext);
71 eglDestroyContext(mEglDisplay, mSecondEglContext);
H A DSurfaceTextureGLToGL.h40 mProducerEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig,
45 mProducerEglContext = eglCreateContext(mEglDisplay, mGlConfig,
53 eglDestroyContext(mEglDisplay, mProducerEglContext);
56 eglDestroySurface(mEglDisplay, mProducerEglSurface);
H A DSurfaceTextureGLToGL_test.cpp39 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface,
46 eglSwapBuffers(mEglDisplay, mProducerEglSurface);
50 eglSwapBuffers(mEglDisplay, mProducerEglSurface);
68 eglSwapBuffers(mEglDisplay, mProducerEglSurface);
71 eglSwapBuffers(mEglDisplay, mProducerEglSurface);
93 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface,
98 eglSwapBuffers(mEglDisplay, mProducerEglSurface);
116 eglSwapBuffers(mEglDisplay, mProducerEglSurface);
119 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
163 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurfac
[all...]
H A DGLTest.cpp36 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
38 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay);
42 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion));
48 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 1,
79 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window);
86 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig,
92 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT,
97 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
102 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w));
104 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurfac
[all...]
H A DSurfaceTextureMultiContextGL_test.cpp37 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
112 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE,
129 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
161 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
193 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
221 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
294 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE,
314 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
322 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
349 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurfac
[all...]
H A DGLTest.h39 mEglDisplay(EGL_NO_DISPLAY),
64 EGLDisplay mEglDisplay; member in class:android::GLTest
H A DSurfaceTextureClient_test.cpp39 mEglDisplay(EGL_NO_DISPLAY),
62 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
64 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay);
67 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion));
72 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(),
81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs);
85 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0);
89 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext));
98 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
99 eglDestroyContext(mEglDisplay, mEglContex
122 EGLDisplay mEglDisplay; member in class:android::SurfaceTextureClientTest
793 EGLDisplay mEglDisplay; member in class:android::MultiSurfaceTextureClientTest
[all...]
H A DSurfaceTextureGLThreadToGL.h172 producerThread->setEglObjects(mEglDisplay, mProducerEglSurface,
/frameworks/native/opengl/tests/EGLTest/
H A DEGL_test.cpp68 EGLDisplay mEglDisplay;
72 mEglDisplay(EGL_NO_DISPLAY) {
76 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
77 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay);
82 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion));
89 EGLBoolean success = eglTerminate(mEglDisplay);
106 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs);
113 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]);
116 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]);
119 success = eglGetConfigAttrib(mEglDisplay, confi
[all...]
/frameworks/av/cmds/screenrecord/
H A DEglWindow.cpp52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(),
81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs);
92 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
102 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
103 if (mEglDisplay == EGL_NO_DISPLAY) {
109 result = eglInitialize(mEglDisplay, &majorVersion, &minorVersion);
136 result = eglChooseConfig(mEglDisplay,
148 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT,
160 if (mEglDisplay != EGL_NO_DISPLAY) {
161 eglMakeCurrent(mEglDisplay, EGL_NO_SURFAC
[all...]
H A DEglWindow.h35 mEglDisplay(EGL_NO_DISPLAY),
75 EGLDisplay mEglDisplay; member in class:android::EglWindow
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp90 , mEglDisplay(EGL_NO_DISPLAY)
102 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
103 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "Failed to get EGL_DEFAULT_DISPLAY! err=%s",
107 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE,
108 "Failed to initialize display %p! err=%s", mEglDisplay, eglErrorString()); local
152 auto extensions = StringUtils::split(eglQueryString(mEglDisplay, EGL_EXTENSIONS));
176 return mEglDisplay != EGL_NO_DISPLAY;
204 if (!eglChooseConfig(mEglDisplay, attribs, &mEglConfig, numConfigs, &numConfigs) ||
241 if (!eglChooseConfig(mEglDisplay, attribs16F, &mEglConfigWideGamut, numConfigs,
262 mEglDisplay, EglExtension
[all...]
H A DEglManager.h77 EGLDisplay mEglDisplay; member in class:android::uirenderer::renderthread::EglManager
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DBlockingGLTextureView.java109 EGLDisplay mEglDisplay; field in class:BlockingGLTextureView.EglHelper
118 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) {
157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {
167 if (!mEgl.eglInitialize(mEglDisplay, version)) {
176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
199 if (mEglDisplay == null) {
216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null);
233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurfac
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DSingleFrameTextureViewTestActivity.java85 private EGLDisplay mEglDisplay;
105 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
121 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
122 mEgl.eglDestroySurface(mEglDisplay, mEglSurface);
128 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
129 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {
135 if (!mEgl.eglInitialize(mEglDisplay, version)) {
145 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
147 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null);
159 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurfac
[all...]
H A DGLTextureViewActivity.java141 private EGLDisplay mEglDisplay; field in class:GLTextureViewActivity.RenderThread
238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
347 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface);
354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
364 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
365 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {
371 if (!mEgl.eglInitialize(mEglDisplay, version)) {
381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfi
[all...]
/frameworks/native/libs/gui/
H A DGLConsumer.cpp145 mEglDisplay(EGL_NO_DISPLAY),
174 mEglDisplay(EGL_NO_DISPLAY),
277 err = syncForReleaseLocked(mEglDisplay);
287 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR);
392 mEglDisplay, EGL_NO_SYNC_KHR);
400 mEglDisplay, EGL_NO_SYNC_KHR);
409 err = mEglSlots[slot].mEglImage->createIfNeeded(mEglDisplay, item.mCrop);
412 mEglDisplay, slot);
414 mEglDisplay, EGL_NO_SYNC_KHR);
420 err = syncForReleaseLocked(mEglDisplay);
[all...]
/frameworks/native/include/gui/
H A DBufferSlot.h178 mEglDisplay(EGL_NO_DISPLAY),
192 // mEglDisplay is the EGLDisplay used to create EGLSyncKHR objects.
193 EGLDisplay mEglDisplay; member in struct:android::BufferSlot
H A DGLConsumer.h258 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence);
287 // to mEglDisplay and mEglContext. If the fields have been previously
340 EGLDisplay mEglDisplay; member in class:android::GLConsumer::EglImage
462 // mEglDisplay is the EGLDisplay with which this GLConsumer is currently
466 EGLDisplay mEglDisplay; member in class:android::GLConsumer
/frameworks/native/libs/gui/include/gui/
H A DBufferSlot.h178 mEglDisplay(EGL_NO_DISPLAY),
192 // mEglDisplay is the EGLDisplay used to create EGLSyncKHR objects.
193 EGLDisplay mEglDisplay; member in struct:android::BufferSlot
H A DGLConsumer.h258 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence);
287 // to mEglDisplay and mEglContext. If the fields have been previously
340 EGLDisplay mEglDisplay; member in class:android::GLConsumer::EglImage
462 // mEglDisplay is the EGLDisplay with which this GLConsumer is currently
466 EGLDisplay mEglDisplay; member in class:android::GLConsumer
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestBuffer.cpp119 : mEglDisplay(EGL_NO_DISPLAY),
132 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
133 if (mEglDisplay == EGL_NO_DISPLAY) return false;
137 if (!eglInitialize(mEglDisplay, &major, &minor)) {
158 if (!eglChooseConfig(mEglDisplay, configAttrs, configs, 1,
162 eglTerminate(mEglDisplay);
169 eglTerminate(mEglDisplay);
176 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT,
185 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0],
193 if (!eglMakeCurrent(mEglDisplay, mEglSurfac
229 EGLDisplay mEglDisplay; member in class:Hwc2TestEglManager
[all...]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
H A DImageFlipRenderThread.java95 private EGLDisplay mEglDisplay; field in class:ImageFlipRenderThread
191 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
300 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
301 mEgl.eglDestroySurface(mEglDisplay, mEglSurface);
307 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
317 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
318 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {
324 if (!mEgl.eglInitialize(mEglDisplay, version)) {
334 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
336 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfi
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DColorFade.java88 private EGLDisplay mEglDisplay; field in class:ColorFade
401 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface);
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, mEglConfi
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLSurfaceView.java1035 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
1037 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {
1045 if(!mEgl.eglInitialize(mEglDisplay, version)) {
1053 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay);
1059 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig);
1088 if (mEglDisplay == null) {
1107 mEglDisplay, mEglConfig, view.getHolder());
1124 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
1169 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
1184 mEgl.eglMakeCurrent(mEglDisplay, EGL1
1235 EGLDisplay mEglDisplay; field in class:GLSurfaceView.EglHelper
[all...]

Completed in 2148 milliseconds

12