• Home
  • Raw
  • Download

Lines Matching refs:mEglDisplay

99           : mEglDisplay(EGL_NO_DISPLAY), mEglSurface(EGL_NO_SURFACE), mEglContext(EGL_NO_CONTEXT) {}  in EglManager()
106 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize()
107 if (mEglDisplay == EGL_NO_DISPLAY) return false; in initialize()
111 if (!eglInitialize(mEglDisplay, &major, &minor)) { in initialize()
137 if (!eglChooseConfig(mEglDisplay, configAttrs, configs, 1, &configCnt)) { in initialize()
140 eglTerminate(mEglDisplay); in initialize()
147 eglTerminate(mEglDisplay); in initialize()
154 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT, attrs); in initialize()
162 if (!eglQueryContext(mEglDisplay, mEglContext, EGL_CONTEXT_CLIENT_VERSION, &majorVersion)) { in initialize()
175 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], mSurface.get(), surfaceAttrs); in initialize()
182 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initialize()
191 void makeCurrent() const { eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); } in makeCurrent()
193 void present() const { eglSwapBuffers(mEglDisplay, mEglSurface); } in present()
197 if (mEglDisplay == EGL_NO_DISPLAY) return; in cleanup()
198 if (mEglSurface != EGL_NO_SURFACE) eglDestroySurface(mEglDisplay, mEglSurface); in cleanup()
199 if (mEglContext != EGL_NO_CONTEXT) eglDestroyContext(mEglDisplay, mEglContext); in cleanup()
201 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in cleanup()
203 eglTerminate(mEglDisplay); in cleanup()
207 EGLDisplay mEglDisplay; member in android::EglManager