Home
last modified time | relevance | path

Searched refs:mEgl (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DGLProducerThread.java40 private EGL10 mEgl; field in GLProducerThread
74 mEgl = (EGL10) EGLContext.getEGL(); in initGL()
76 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in initGL()
79 + GLUtils.getEGLErrorString(mEgl.eglGetError())); in initGL()
83 if (!mEgl.eglInitialize(mEglDisplay, version)) { in initGL()
85 + GLUtils.getEGLErrorString(mEgl.eglGetError())); in initGL()
101 if (!mEgl.eglChooseConfig(mEglDisplay, configAttribs, configs, 1, numConfigs) in initGL()
110 mEglContext = mEgl.eglCreateContext(mEglDisplay, in initGL()
113 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, in initGL()
117 int error = mEgl.eglGetError(); in initGL()
[all …]
DTextureViewCtsActivity.java76 private EGL10 mEgl; field in TextureViewCtsActivity
239 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in drawColor()
263 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in drawFrame()
291 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in doFinishGL()
295 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in doFinishGL()
299 mEgl.eglTerminate(mEglDisplay); in doFinishGL()
337 mEgl = (EGL10) EGLContext.getEGL();
339 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
342 + GLUtils.getEGLErrorString(mEgl.eglGetError()));
346 if (!mEgl.eglInitialize(mEglDisplay, version)) {
[all …]
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGLSurfaceViewCustom.java1011 mEgl = (EGL10) EGLContext.getEGL(); in start()
1016 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start()
1026 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start()
1034 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start()
1040 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start()
1066 if (mEgl == null) { in createSurface()
1087 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface()
1094 int error = mEgl.eglGetError(); in createSurface()
1105 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1110 logEglErrorAsWarning("EGLHelper", "eglMakeCurrent", mEgl.eglGetError()); in createSurface()
[all …]