/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/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/packages/SystemUI/src/com/android/systemui/ |
D | ImageWallpaper.java | 123 private EGL10 mEgl; field in ImageWallpaper.DrawableEngine 564 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in drawWallpaperWithOpenGL() 661 int error = mEgl.eglGetError(); in checkEglError() 679 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in finishGL() 680 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); in finishGL() 681 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL() 682 mEgl.eglTerminate(mEglDisplay); in finishGL() 686 mEgl = (EGL10) EGLContext.getEGL(); in initGL() 688 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY); in initGL() 691 GLUtils.getEGLErrorString(mEgl.eglGetError())); in initGL() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLSurfaceView.java | 1001 mEgl = (EGL10) EGLContext.getEGL(); in start() 1006 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start() 1016 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start() 1024 mEglConfig = view.mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start() 1030 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start() 1056 if (mEgl == null) { in createSurface() 1077 mEglSurface = view.mEGLWindowSurfaceFactory.createWindowSurface(mEgl, in createSurface() 1084 int error = mEgl.eglGetError(); in createSurface() 1095 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 1100 logEglErrorAsWarning("EGLHelper", "eglMakeCurrent", mEgl.eglGetError()); in createSurface() [all …]
|