Home | History | Annotate | Download | only in rs

Lines Matching refs:mEGL

59     mEGL.mNumConfigs = -1;
103 mEGL.mDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
106 eglInitialize(mEGL.mDisplay, &mEGL.mMajorVersion, &mEGL.mMinorVersion);
109 status_t err = EGLUtils::selectConfigForNativeWindow(mEGL.mDisplay, configAttribs, mWndSurface, &mEGL.mConfig);
113 //eglChooseConfig(mEGL.mDisplay, configAttribs, &mEGL.mConfig, 1, &mEGL.mNumConfigs);
117 mEGL.mContext = eglCreateContext(mEGL.mDisplay, mEGL.mConfig, EGL_NO_CONTEXT, context_attribs2);
119 mEGL.mContext = eglCreateContext(mEGL.mDisplay, mEGL.mConfig, EGL_NO_CONTEXT, NULL);
122 if (mEGL.mContext == EGL_NO_CONTEXT) {
132 eglDestroyContext(mEGL.mDisplay, mEGL.mContext);
137 eglTerminate(mEGL.mDisplay);
171 eglQuerySurface(mEGL.mDisplay, mEGL.mSurface, EGL_WIDTH, &mEGL.mWidth);
172 eglQuerySurface(mEGL.mDisplay, mEGL.mSurface, EGL_HEIGHT, &mEGL.mHeight);
173 glViewport(0, 0, mEGL.mWidth, mEGL.mHeight);
315 rsc->mStateRaster.init(rsc, rsc->mEGL.mWidth, rsc->mEGL.mHeight);
317 rsc->mStateVertex.init(rsc, rsc->mEGL.mWidth, rsc->mEGL.mHeight);
319 rsc->mStateFragment.init(rsc, rsc->mEGL.mWidth, rsc->mEGL.mHeight);
321 rsc->mStateFragmentStore.init(rsc, rsc->mEGL.mWidth, rsc->mEGL.mHeight);
338 eglSwapBuffers(rsc->mEGL.mDisplay, rsc->mEGL.mSurface);
416 memset(&mEGL, 0, sizeof(mEGL));
493 if (mEGL.mSurface != NULL) {
494 ret = eglMakeCurrent(mEGL.mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
497 ret = eglDestroySurface(mEGL.mDisplay, mEGL.mSurface);
500 mEGL.mSurface = NULL;
501 mEGL.mWidth = 0;
502 mEGL.mHeight = 0;
510 if (!mEGL.mContext) {
517 mEGL.mSurface = eglCreateWindowSurface(mEGL.mDisplay, mEGL.mConfig, mWndSurface, NULL);
519 if (mEGL.mSurface == EGL_NO_SURFACE) {
523 ret = eglMakeCurrent(mEGL.mDisplay, mEGL.mSurface, mEGL.mSurface, mEGL.mContext);
526 eglQuerySurface(mEGL.mDisplay, mEGL.mSurface, EGL_WIDTH, &mEGL.mWidth);
527 eglQuerySurface(mEGL.mDisplay, mEGL.mSurface, EGL_HEIGHT, &mEGL.mHeight);
532 if ((int)mWidth != mEGL.mWidth || (int)mHeight != mEGL.mHeight) {
533 LOGE("EGL/Surface mismatch EGL (%i x %i) SF (%i x %i)", mEGL.mWidth, mEGL.mHeight, mWidth, mHeight);
542 //LOGV("EGL Version %i %i", mEGL.mMajorVersion, mEGL.mMinorVersion);
813 LOGE(" EGL ver %i %i", mEGL.mMajorVersion, mEGL.mMinorVersion);
814 LOGE(" EGL context %p surface %p, w=%i h=%i Display=%p", mEGL.mContext,
815 mEGL.mSurface, mEGL.mWidth, mEGL.mHeight, mEGL.mDisplay);