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.cpp34 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
36 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay);
40 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion));
46 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 1,
77 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window);
84 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig,
90 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT,
95 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
100 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w));
102 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurfac
[all...]
H A DSRGB_test.cpp57 mEglDisplay(EGL_NO_DISPLAY), mEglConfig(),
63 if (mEglDisplay != EGL_NO_DISPLAY) {
65 eglDestroySurface(mEglDisplay, mEglSurface);
68 eglDestroyContext(mEglDisplay, mEglContext);
70 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE,
72 eglTerminate(mEglDisplay);
238 EGLDisplay mEglDisplay; member in class:android::SRGBTest
250 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
252 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay);
254 EXPECT_TRUE(eglInitialize(mEglDisplay, NUL
[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.cpp38 mEglDisplay(EGL_NO_DISPLAY),
61 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
63 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay);
66 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion));
71 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(),
80 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs);
84 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0);
88 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext));
97 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
98 eglDestroyContext(mEglDisplay, mEglContex
121 EGLDisplay mEglDisplay; member in class:android::SurfaceTextureClientTest
792 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.cpp29 EGLDisplay mEglDisplay; member in class:android::EGLTest
33 mEglDisplay(EGL_NO_DISPLAY) {
37 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
38 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay);
43 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion));
50 EGLBoolean success = eglTerminate(mEglDisplay);
67 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs);
74 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]);
77 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]);
80 success = eglGetConfigAttrib(mEglDisplay, confi
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp90 , mEglDisplay(EGL_NO_DISPLAY)
104 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
105 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY,
109 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE,
110 "Failed to initialize display %p! err=%s", mEglDisplay, egl_error_str()); local
136 eglQueryString(mEglDisplay, EGL_EXTENSIONS));
144 return mEglDisplay != EGL_NO_DISPLAY;
165 if (!eglChooseConfig(mEglDisplay, attribs, &mEglConfig, num_configs, &num_configs)
184 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, attribs);
216 LOG_ALWAYS_FATAL_IF(mEglDisplay
[all...]
H A DEglManager.h102 EGLDisplay mEglDisplay; member in class:android::uirenderer::renderthread::EglManager
/frameworks/av/cmds/screenrecord/
H A DEglWindow.cpp53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(),
82 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs);
93 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
103 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
104 if (mEglDisplay == EGL_NO_DISPLAY) {
110 result = eglInitialize(mEglDisplay, &majorVersion, &minorVersion);
137 result = eglChooseConfig(mEglDisplay,
149 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT,
161 if (mEglDisplay != EGL_NO_DISPLAY) {
162 eglMakeCurrent(mEglDisplay, EGL_NO_SURFAC
[all...]
H A DEglWindow.h35 mEglDisplay(EGL_NO_DISPLAY),
75 EGLDisplay mEglDisplay; member in class:android::EglWindow
/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.cpp167 mEglDisplay(EGL_NO_DISPLAY),
195 mEglDisplay(EGL_NO_DISPLAY),
298 err = syncForReleaseLocked(mEglDisplay);
308 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR);
410 mEglDisplay, EGL_NO_SYNC_KHR);
418 mEglDisplay, EGL_NO_SYNC_KHR);
427 err = mEglSlots[slot].mEglImage->createIfNeeded(mEglDisplay, item.mCrop);
430 mEglDisplay, slot);
432 mEglDisplay, EGL_NO_SYNC_KHR);
438 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.h257 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence);
288 // to mEglDisplay and mEglContext. If the fields have been previously
341 EGLDisplay mEglDisplay; member in class:android::GLConsumer::EglImage
456 // mEglDisplay is the EGLDisplay with which this GLConsumer is currently
460 EGLDisplay mEglDisplay; member in class:android::GLConsumer
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp52 mEglDisplay(EGL_NO_DISPLAY),
59 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
61 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay);
65 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion));
71 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig,
103 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig,
112 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig,
118 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT,
123 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
128 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurfac
336 EGLDisplay mEglDisplay; member in class:android::GLTest
[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
405 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface);
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, mEglConfi
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java127 private EGLDisplay mEglDisplay; field in class:ImageWallpaper.DrawableEngine
618 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);
733 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
734 mEgl.eglDestroySurface(mEglDisplay, mEglSurface);
735 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
736 mEgl.eglTerminate(mEglDisplay);
742 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY);
743 if (mEglDisplay == EGL_NO_DISPLAY) {
749 if (!mEgl.eglInitialize(mEglDisplay, version)) {
759 mEglContext = createContext(mEgl, mEglDisplay, mEglConfi
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLSurfaceView.java1018 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
1020 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {
1028 if(!mEgl.eglInitialize(mEglDisplay, version)) {
1036 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay);
1042 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig);
1071 if (mEglDisplay == null) {
1090 mEglDisplay, mEglConfig, view.getHolder());
1107 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
1152 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
1167 mEgl.eglMakeCurrent(mEglDisplay, EGL1
1218 EGLDisplay mEglDisplay; field in class:GLSurfaceView.EglHelper
[all...]

Completed in 504 milliseconds

12