Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/
DSurfaceTextureRenderer.java41 private EGLDisplay mEglDisplay; field in SurfaceTextureRenderer
57 if (mEglDisplay != null && mEglSurface != null) {
59 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);
79 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in release()
80 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in release()
81 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, in release()
83 mEgl.eglTerminate(mEglDisplay); in release()
86 mEglDisplay = null; in release()
117 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initialize()
118 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initialize()
[all …]
/packages/apps/Gallery2/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 …]
/packages/apps/Nfc/src/com/android/nfc/beam/
DFireflyRenderer.java159 EGLDisplay mEglDisplay; field in FireflyRenderer.FireflyRenderThread
204 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run()
230 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run()
283 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
294 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL()
295 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL()
302 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
314 … mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); in initGL()
316 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL()
324 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
[all …]
/packages/screensavers/Basic/src/com/android/dreams/basic/
DColorsGLRenderer.java70 private EGLDisplay mEglDisplay; field in ColorsGLRenderer
136 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in doFrame()
148 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
158 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL()
159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in initGL()
165 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
175 mEglContext = createContext(mEgl, mEglDisplay, eglConfig); in initGL()
177 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, eglConfig, mSurface, null); in initGL()
189 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
196 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
[all …]