Home | History | Annotate | Download | only in util

Lines Matching refs:mDisplay

23       mDisplay(EGL_NO_DISPLAY),
46 eglSwapBuffers(mDisplay, mSurface);
56 return mDisplay;
83 mDisplay = eglGetPlatformDisplayEXT(EGL_PLATFORM_ANGLE_ANGLE, osWindow->getNativeDisplay(), displayAttributes);
84 if (mDisplay == EGL_NO_DISPLAY)
91 if (!eglInitialize(mDisplay, &majorVersion, &minorVersion))
117 if (!eglChooseConfig(mDisplay, configAttributes, &mConfig, 1, &configCount) || (configCount != 1))
123 eglGetConfigAttrib(mDisplay, mConfig, EGL_RED_SIZE, &mRedBits);
124 eglGetConfigAttrib(mDisplay, mConfig, EGL_GREEN_SIZE, &mGreenBits);
125 eglGetConfigAttrib(mDisplay, mConfig, EGL_BLUE_SIZE, &mBlueBits);
126 eglGetConfigAttrib(mDisplay, mConfig, EGL_ALPHA_SIZE, &mBlueBits);
127 eglGetConfigAttrib(mDisplay, mConfig, EGL_DEPTH_SIZE, &mDepthBits);
128 eglGetConfigAttrib(mDisplay, mConfig, EGL_STENCIL_SIZE, &mStencilBits);
136 mSurface = eglCreateWindowSurface(mDisplay, mConfig, osWindow->getNativeWindow(), surfaceAttributes);
140 mSurface = eglCreateWindowSurface(mDisplay, mConfig, NULL, NULL);
155 mContext = eglCreateContext(mDisplay, mConfig, NULL, contextAttibutes);
162 eglMakeCurrent(mDisplay, mSurface, mSurface, mContext);
171 eglSwapInterval(mDisplay, mSwapInterval);
181 assert(mDisplay != EGL_NO_DISPLAY);
182 eglDestroySurface(mDisplay, mSurface);
188 assert(mDisplay != EGL_NO_DISPLAY);
189 eglDestroyContext(mDisplay, mContext);
193 if (mDisplay != EGL_NO_DISPLAY)
195 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
196 eglTerminate(mDisplay);
197 mDisplay = EGL_NO_DISPLAY;