Home
last modified time | relevance | path

Searched refs:eglDisplay (Results 1 – 23 of 23) sorted by relevance

/frameworks/native/opengl/tests/tritex/
Dtritex.cpp20 EGLDisplay eglDisplay; variable
128 if ( (eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY)) == EGL_NO_DISPLAY ) in init_gl_surface()
134 if ( eglInitialize(eglDisplay, NULL, NULL) != EGL_TRUE ) in init_gl_surface()
141 EGLUtils::selectConfigForNativeWindow(eglDisplay, attrib, window, &myConfig); in init_gl_surface()
143 if ( (eglSurface = eglCreateWindowSurface(eglDisplay, myConfig, in init_gl_surface()
150 if ( (eglContext = eglCreateContext(eglDisplay, myConfig, 0, 0)) == EGL_NO_CONTEXT ) in init_gl_surface()
156 if ( eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext) != EGL_TRUE ) in init_gl_surface()
167 if (eglDisplay != EGL_NO_DISPLAY) in free_gl_surface()
171 eglDestroyContext( eglDisplay, eglContext ); in free_gl_surface()
172 eglDestroySurface( eglDisplay, eglSurface ); in free_gl_surface()
[all …]
/frameworks/base/services/core/java/com/android/server/wallpaper/
DGLHelper.java74 EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in retrieveTextureSizeFromGL() local
75 if (eglDisplay == null || eglDisplay == EGL_NO_DISPLAY) { in retrieveTextureSizeFromGL()
80 if (!eglInitialize(eglDisplay, null, 0 /* majorOffset */, null, 1 /* minorOffset */)) { in retrieveTextureSizeFromGL()
100 if (!eglChooseConfig(eglDisplay, configSpec, 0 /* attrib_listOffset */, in retrieveTextureSizeFromGL()
115 eglDisplay, eglConfig, EGL_NO_CONTEXT, attr_list, 0 /* offset */); in retrieveTextureSizeFromGL()
125 eglCreatePbufferSurface(eglDisplay, eglConfig, attrs, 0 /* offset */); in retrieveTextureSizeFromGL()
126 eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext); in retrieveTextureSizeFromGL()
133 eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in retrieveTextureSizeFromGL()
134 eglDestroySurface(eglDisplay, eglSurface); in retrieveTextureSizeFromGL()
135 eglDestroyContext(eglDisplay, eglContext); in retrieveTextureSizeFromGL()
[all …]
/frameworks/native/opengl/tests/gl_basic/
Dgl_basic.cpp20 EGLDisplay eglDisplay; variable
222 if ( (eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY)) == EGL_NO_DISPLAY ) in init_gl_surface()
228 if ( eglInitialize(eglDisplay, NULL, NULL) != EGL_TRUE ) in init_gl_surface()
234 if (! printEGLConfigurations(eglDisplay)) { in init_gl_surface()
240 EGLUtils::selectConfigForNativeWindow(eglDisplay, attrib, window, &myConfig); in init_gl_surface()
242 if ( (eglSurface = eglCreateWindowSurface(eglDisplay, myConfig, in init_gl_surface()
249 if ( (eglContext = eglCreateContext(eglDisplay, myConfig, 0, 0)) == EGL_NO_CONTEXT ) in init_gl_surface()
255 if ( eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext) != EGL_TRUE ) in init_gl_surface()
263 eglQuerySurface(eglDisplay, eglSurface, EGL_WIDTH, &w); in init_gl_surface()
265 eglQuerySurface(eglDisplay, eglSurface, EGL_HEIGHT, &h); in init_gl_surface()
[all …]
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraStream.cc124 const EGLDisplay eglDisplay, const int bufferId) { in getEglFrameBuffer() argument
125 const FramebufferMapKey key(bufferId, eglDisplay); in getEglFrameBuffer()
140 std::make_shared<EglFrameBuffer>(eglDisplay, hwBufferPtr); in getEglFrameBuffer()
DVirtualCameraSessionContext.cc151 const EGLDisplay eglDisplay, const int streamId, const int bufferId) { in fetchOrCreateEglFramebuffer() argument
160 return stream.getEglFrameBuffer(eglDisplay, bufferId); in fetchOrCreateEglFramebuffer()
DVirtualCameraSessionContext.h83 const EGLDisplay eglDisplay, int streamId, int bufferId) EXCLUDES(mLock);
DVirtualCameraStream.h55 std::shared_ptr<EglFrameBuffer> getEglFrameBuffer(const EGLDisplay eglDisplay,
DVirtualCameraRenderThread.cc214 EGLDisplay eglDisplay, const uint width, const int height) { in allocateTemporaryFramebuffer() argument
235 eglDisplay, in allocateTemporaryFramebuffer()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DRenderTarget.java88 EGLDisplay eglDisplay = createDefaultDisplay(egl); in newTarget() local
89 EGLConfig eglConfig = chooseEglConfig(egl, eglDisplay); in newTarget()
90 EGLContext eglContext = createContext(egl, eglDisplay, eglConfig); in newTarget()
91 EGLSurface eglSurface = createSurface(egl, eglDisplay, width, height); in newTarget()
92 RenderTarget result = new RenderTarget(eglDisplay, eglContext, eglSurface, 0, true, true); in newTarget()
/frameworks/base/libs/hwui/pipeline/skia/
DVkInteropFunctorDrawable.cpp62 EGLDisplay display = sEglManager.eglDisplay(); in vkInvokeFunctor()
113 EGLDisplay display = sEglManager.eglDisplay(); in onDraw()
DSkiaOpenGLPipeline.cpp268 EGLDisplay display = mEglManager.eglDisplay(); in flush()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DSingleFrameTextureViewTestActivity.java166 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in onSurfaceTextureAvailable()
168 … return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in onSurfaceTextureAvailable()
DGLTextureViewActivity.java404 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in createContext() argument
406 … return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
/frameworks/base/libs/hwui/renderthread/
DEglManager.h73 EGLDisplay eglDisplay() const { return mEglDisplay; } in eglDisplay() function
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java140 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in createContext() argument
142 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attribList); in createContext()
/frameworks/native/opengl/libs/EGL/
Degl_display.cpp68 egl_display_t* eglDisplay = egl_display_t::get(dpy); in egl_get_init_count() local
69 return eglDisplay ? eglDisplay->getRefsCount() : 0; in egl_get_init_count()
/frameworks/native/libs/nativedisplay/surfacetexture/
DEGLConsumer.cpp619 status_t EGLConsumer::EglImage::createIfNeeded(EGLDisplay eglDisplay, bool forceCreation) { in createIfNeeded() argument
622 bool displayInvalid = mEglDisplay != eglDisplay; in createIfNeeded()
634 mEglDisplay = eglDisplay; in createIfNeeded()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
DImageFlipRenderThread.java355 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in createContext() argument
357 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
/frameworks/native/libs/gui/
DGLConsumer.cpp952 status_t GLConsumer::EglImage::createIfNeeded(EGLDisplay eglDisplay, in createIfNeeded() argument
956 bool displayInvalid = mEglDisplay != eglDisplay; in createIfNeeded()
969 mEglDisplay = eglDisplay; in createIfNeeded()
DBufferQueueConsumer.cpp451 const sp<Fence>& releaseFence, EGLDisplay eglDisplay, in releaseBuffer() argument
484 mSlots[slot].mEglDisplay = eglDisplay; in releaseBuffer()
DBufferQueueProducer.cpp419 EGLDisplay eglDisplay = EGL_NO_DISPLAY; in dequeueBuffer() local
563 eglDisplay = mSlots[found].mEglDisplay; in dequeueBuffer()
660 EGLint result = eglClientWaitSyncKHR(eglDisplay, eglFence, 0, in dequeueBuffer()
671 eglDestroySyncKHR(eglDisplay, eglFence); in dequeueBuffer()
/frameworks/base/libs/hwui/
DDeferredLayerUpdater.cpp106 *display = eglManager.eglDisplay(); in createReleaseFence()
DHardwareBitmapUploader.cpp166 return mEglManager.eglDisplay(); in getUploadEglDisplay()