/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | BlockingGLTextureView.java | 108 EGL10 mEgl; field in BlockingGLTextureView.EglHelper 118 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { in chooseEglConfig() 120 GLUtils.getEGLErrorString(mEgl.eglGetError())); in chooseEglConfig() 152 mEgl = (EGL10) EGLContext.getEGL(); in start() 157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start() 167 if (!mEgl.eglInitialize(mEglDisplay, version)) { in start() 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in start() 196 if (mEgl == null) { in createSurface() 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in createSurface() 222 int error = mEgl.eglGetError(); in createSurface() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GLTextureViewActivity.java | 140 private EGL10 mEgl; field in GLTextureViewActivity.RenderThread 238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { in run() 333 int error = mEgl.eglGetError(); in checkEglError() 347 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL() 348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 352 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || in checkCurrent() 353 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { in checkCurrent() 354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent() 356 + GLUtils.getEGLErrorString(mEgl.eglGetError())); in checkCurrent() 362 mEgl = (EGL10) EGLContext.getEGL(); in initGL() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ImageWallpaper.java | 122 private EGL10 mEgl; field in ImageWallpaper.DrawableEngine 533 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL() 630 int error = mEgl.eglGetError(); in checkEglError() 648 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in finishGL() 649 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 650 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL() 651 mEgl.eglTerminate(mEglDisplay); in finishGL() 655 mEgl = (EGL10) EGLContext.getEGL(); in initGL() 657 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY); in initGL() 660 GLUtils.getEGLErrorString(mEgl.eglGetError())); in initGL() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | RenderTarget.java | 64 private EGL10 mEgl; field in RenderTarget 119 EGLConfig eglConfig = chooseEglConfig(mEgl, mDisplay); in forSurfaceHolder() 124 eglSurf = mEgl.eglCreateWindowSurface(mDisplay, eglConfig, surfaceHolder, null); in forSurfaceHolder() 128 checkEglError(mEgl, "eglCreateWindowSurface"); in forSurfaceHolder() 129 checkSurface(mEgl, eglSurf); in forSurfaceHolder() 138 EGLConfig eglConfig = chooseEglConfig(mEgl, mDisplay); in forSurfaceTexture() 143 eglSurf = mEgl.eglCreateWindowSurface(mDisplay, eglConfig, surfaceTexture, null); in forSurfaceTexture() 147 checkEglError(mEgl, "eglCreateWindowSurface"); in forSurfaceTexture() 148 checkSurface(mEgl, eglSurf); in forSurfaceTexture() 157 EGLConfig eglConfig = chooseEglConfig(mEgl, mDisplay); in forSurface() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLSurfaceView.java | 1000 mEgl = (EGL10) EGLContext.getEGL(); in start() 1005 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start() 1015 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start() 1023 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start() 1029 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start() 1055 if (mEgl == null) { in createSurface() 1076 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface() 1083 int error = mEgl.eglGetError(); in createSurface() 1094 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 1099 logEglErrorAsWarning("EGLHelper", "eglMakeCurrent", mEgl.eglGetError()); in createSurface() [all …]
|