Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/photos/views/
DBlockingGLTextureView.java112 EGLContext mEglContext; field in BlockingGLTextureView.EglHelper
176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in start()
178 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { in start()
179 mEglContext = null; in start()
233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
249 return (GL10) mEglContext.getGL(); in createGL()
278 if (mEglContext != null) { in finish()
279 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finish()
280 mEglContext = null; in finish()
/packages/apps/Camera2/src/com/android/camera/
DSurfaceTextureRenderer.java42 private EGLContext mEglContext; field in SurfaceTextureRenderer
80 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in release()
85 mEglContext = null; in release()
129 mEglContext = mEgl.eglCreateContext( in initialize()
132 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { in initialize()
142 mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
146 mGl = (GL10) mEglContext.getGL(); in initialize()
/packages/apps/Nfc/src/com/android/nfc/beam/
DFireflyRenderer.java161 EGLContext mEglContext; field in FireflyRenderer.FireflyRenderThread
281 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || in checkCurrent()
283 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
314mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); in initGL()
324 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
330 mGL = (GL10) mEglContext.getGL(); in initGL()
348 if (mEglContext != null) { in finishGL()
349 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
/packages/screensavers/Basic/src/com/android/dreams/basic/
DColorsGLRenderer.java71 private EGLContext mEglContext; field in ColorsGLRenderer
146 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || in checkCurrent()
148 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
175 mEglContext = createContext(mEgl, mEglDisplay, eglConfig); in initGL()
189 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
196 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()