Lines Matching defs:mEglDisplay

69         , mEglDisplay(EGL_NO_DISPLAY)
87 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
88 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY,
92 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE,
93 "Failed to initialize display %p! err=%s", mEglDisplay, egl_error_str());
105 return mEglDisplay != EGL_NO_DISPLAY;
109 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "No EGL context");
135 if (!eglChooseConfig(mEglDisplay, attribs, &mEglConfig, num_configs, &num_configs)
151 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, attribs);
184 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY,
189 mPBufferSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, attribs);
196 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, mEglConfig, window, NULL);
207 if (!eglDestroySurface(mEglDisplay, surface)) {
213 if (mEglDisplay == EGL_NO_DISPLAY) return;
221 eglDestroyContext(mEglDisplay, mEglContext);
222 eglDestroySurface(mEglDisplay, mPBufferSurface);
223 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
224 eglTerminate(mEglDisplay);
227 mEglDisplay = EGL_NO_DISPLAY;
238 // return errors, which would only happen if mEglDisplay had already been
240 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
241 } else if (!eglMakeCurrent(mEglDisplay, surface, surface, mEglContext)) {
254 eglQuerySurface(mEglDisplay, surface, EGL_WIDTH, width);
257 eglQuerySurface(mEglDisplay, surface, EGL_HEIGHT, height);
259 eglBeginFrame(mEglDisplay, surface);
265 eglSwapBuffers(mEglDisplay, surface);
292 preserved = eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR,
302 if (eglQuerySurface(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, &swapBehavior)) {