/external/angle/src/tests/egl_tests/ |
D | EGLDirectCompositionTest.cpp | 160 mEglDisplay = eglGetPlatformDisplayEXT(EGL_PLATFORM_ANGLE_ANGLE, in Init() 163 ASSERT_TRUE(mEglDisplay != EGL_NO_DISPLAY); in Init() 165 ASSERT_EGL_TRUE(eglInitialize(mEglDisplay, nullptr, nullptr)); in Init() 169 ASSERT_EGL_TRUE(eglGetConfigs(mEglDisplay, nullptr, 0, &nConfigs)); in Init() 172 ASSERT_EGL_TRUE(eglChooseConfig(mEglDisplay, configAttributes, &mEglConfig, 1, &nConfigs)); in Init() 178 auto displayExtensions = eglQueryString(mEglDisplay, EGL_EXTENSIONS); in CreateSurface() 187 eglCreateWindowSurface(mEglDisplay, mEglConfig, in CreateSurface() 191 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, contextAttributes); in CreateSurface() 194 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, surface, surface, mEglContext) != EGL_FALSE); in CreateSurface() 203 ASSERT_EGL_TRUE(eglTerminate(mEglDisplay)); in testTearDown() [all …]
|
/external/skqp/platform_tools/android/apps/skottie/src/main/java/org/skia/skottie/ |
D | SkottieRunner.java | 42 private EGLDisplay mEglDisplay; field in SkottieRunner 162 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 163 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 169 if (!mEgl.eglInitialize(mEglDisplay, version)) { 179 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 187 mPBufferSurface = mEgl.eglCreatePbufferSurface(mEglDisplay, mEglConfig, attribs); 194 if (!mEgl.eglMakeCurrent(mEglDisplay, mPBufferSurface, mPBufferSurface, mEglContext)) { 212 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { in chooseEglConfig() 237 if (mEglDisplay != null) { in doFinishGL() 239 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in doFinishGL() [all …]
|
/external/skia/platform_tools/android/apps/skottie/skottielib/src/main/java/org/skia/skottie/ |
D | SkottieRunner.java | 42 EGLDisplay mEglDisplay; field in SkottieRunner 182 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 183 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 189 if (!mEgl.eglInitialize(mEglDisplay, version)) { 199 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 207 mPBufferSurface = mEgl.eglCreatePbufferSurface(mEglDisplay, mEglConfig, attribs); 214 if (!mEgl.eglMakeCurrent(mEglDisplay, mPBufferSurface, mPBufferSurface, mEglContext)) { 232 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { in chooseEglConfig() 257 if (mEglDisplay != null) { in doFinishGL() 259 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in doFinishGL() [all …]
|
D | SkottieAnimation.java | 177 mRunner.mEgl.eglMakeCurrent(mRunner.mEglDisplay, mRunner.mPBufferSurface, in end() 179 mRunner.mEgl.eglDestroySurface(mRunner.mEglDisplay, mEglSurface); in end() 293 mRunner.mEgl.eglDestroySurface(mRunner.mEglDisplay, mEglSurface); in drawFrame() 302 mEglSurface = mRunner.mEgl.eglCreateWindowSurface(mRunner.mEglDisplay, in drawFrame() 307 mEglSurface = mRunner.mEgl.eglCreateWindowSurface(mRunner.mEglDisplay, in drawFrame() 314 if (!mRunner.mEgl.eglMakeCurrent(mRunner.mEglDisplay, mEglSurface, mEglSurface, in drawFrame() 325 if (!mRunner.mEgl.eglSwapBuffers(mRunner.mEglDisplay, mEglSurface)) { in drawFrame() 350 mRunner.mEgl.eglMakeCurrent(mRunner.mEglDisplay, mRunner.mPBufferSurface, in drawFrame() 352 mRunner.mEgl.eglDestroySurface(mRunner.mEglDisplay, mEglSurface); in drawFrame()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | GLSurfaceView.java | 930 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in start() 932 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { in start() 940 if(!mEgl.eglInitialize(mEglDisplay, version)) { in start() 943 mEglConfig = mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); in start() 949 mEglContext = mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start() 972 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, in createSurface() 974 mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); in createSurface() 981 mEglDisplay, mEglConfig, holder); in createSurface() 991 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface() 1019 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); in swap() [all …]
|