Searched refs:mEglContext (Results 1 - 3 of 3) sorted by relevance

/packages/apps/Camera/src/com/android/camera/
H A DMosaicPreviewRenderer.java55 private EGLContext mEglContext; field in class:MosaicPreviewRenderer
138 mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT,
141 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) {
150 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
154 mGl = (GL10) mEglContext.getGL();
162 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
167 mEglContext = null;
/packages/screensavers/Basic/src/com/android/dreams/basic/
H A DColorsGLRenderer.java70 private EGLContext mEglContext; field in class:ColorsGLRenderer
145 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) ||
147 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
174 mEglContext = createContext(mEgl, mEglDisplay, eglConfig);
188 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
195 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
/packages/apps/Nfc/src/com/android/nfc/
H A DFireflyRenderer.java161 EGLContext mEglContext; field in class:FireflyRenderer.FireflyRenderThread
281 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) ||
283 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
314 mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null);
324 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
330 mGL = (GL10) mEglContext.getGL();
348 if (mEglContext != null) {
349 mEgl.eglDestroyContext(mEglDisplay, mEglContext);

Completed in 234 milliseconds