Searched refs:mEglContext (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGLTextureViewActivity.java143 private EGLContext mEglContext; field in class:GLTextureViewActivity.RenderThread
347 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
352 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) ||
354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
395 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
400 mGL = mEglContext.getGL();
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureClient_test.cpp34 mEglContext(EGL_NO_CONTEXT) {
73 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0);
75 ASSERT_NE(EGL_NO_CONTEXT, mEglContext);
77 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext));
87 eglDestroyContext(mEglDisplay, mEglContext);
112 EGLContext mEglContext; member in class:android::SurfaceTextureClientTest
180 EGLBoolean success = eglMakeCurrent(mEglDisplay, eglSurface, eglSurface, mEglContext);
194 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext);
683 mEglContext(EGL_NO_CONTEXT) {
712 mEglContext
748 EGLContext mEglContext; member in class:android::MultiSurfaceTextureClientTest
[all...]
H A DSurfaceTexture_test.cpp49 mEglContext(EGL_NO_CONTEXT) {
116 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT,
119 ASSERT_NE(EGL_NO_CONTEXT, mEglContext);
122 mEglContext));
147 if (mEglContext != EGL_NO_CONTEXT) {
148 eglDestroyContext(mEglDisplay, mEglContext);
284 EGLContext mEglContext; member in class:android::GLTest
1602 mEglContext));
1660 mEglContext));
1706 mEglContext));
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLSurfaceView.java1022 mEglContext = null;
1030 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig);
1032 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) {
1033 mEglContext = null;
1037 Log.w("EglHelper", "createContext " + mEglContext + " tid=" + Thread.currentThread().getId());
1095 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
1113 GL gl = mEglContext.getGL();
1170 if (mEglContext != null) {
1173 view.mEGLContextFactory.destroyContext(mEgl, mEglDisplay, mEglContext);
1209 EGLContext mEglContext; field in class:GLSurfaceView.EglHelper
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java123 private EGLContext mEglContext; field in class:ImageWallpaper.DrawableEngine
604 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
628 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);
629 if (mEglContext == EGL_NO_CONTEXT) {
640 mEgl.eglMakeCurrent(mEglDisplay, tmpSurface, tmpSurface, mEglContext);
650 mEgl.eglDestroyContext(mEglDisplay, mEglContext);
670 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/frameworks/native/libs/gui/
H A DGLConsumer.cpp95 mEglContext(EGL_NO_CONTEXT),
323 if ((mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) ||
330 mEglContext = ctx;
369 if (mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) {
396 mEglContext = EGL_NO_CONTEXT;
446 mEglContext = ctx;
786 if (mEglContext != ctx || mEglContext
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DNativeWindowRenderer.h90 EGLContext mEglContext; member in class:android::NativeWindowRenderer
H A DNativeWindowRenderer.cpp213 mEglContext = eglCreateContext(mEglDisplay, config, EGL_NO_CONTEXT,
217 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext);
222 eglDestroyContext(mEglDisplay, mEglContext);
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp57 mEglContext(EGL_NO_CONTEXT) {
121 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT,
124 ASSERT_NE(EGL_NO_CONTEXT, mEglContext);
127 mEglContext));
152 if (mEglContext != EGL_NO_CONTEXT) {
153 eglDestroyContext(mEglDisplay, mEglContext);
341 EGLContext mEglContext; member in class:android::GLTest
499 mEglContext));
801 mEglContext));
/frameworks/base/services/java/com/android/server/power/
H A DElectronBeam.java89 private EGLContext mEglContext; field in class:ElectronBeam
476 if (mEglContext == null) {
480 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig,
482 if (mEglContext == null) {
492 if (mEglContext != null) {
493 if (!EGL14.eglDestroyContext(mEglDisplay, mEglContext)) {
496 mEglContext = null;
599 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/frameworks/base/core/java/android/view/
H A DHardwareRenderer.java774 EGLContext mEglContext; field in class:HardwareRenderer.GlRenderer
1040 mEglContext = managedContext != null ? managedContext.getContext() : null;
1043 if (mEglContext == null) {
1044 mEglContext = createContext(sEgl, sEglDisplay, sEglConfig);
1045 sEglContextStorage.set(createManagedContext(mEglContext));
1162 return mEglContext.getGL();
1263 if (!sEgl.eglMakeCurrent(sEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
1588 if (!mEglContext.equals(sEgl.eglGetCurrentContext()) ||
1590 if (!sEgl.eglMakeCurrent(sEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
1766 return new Gl20Renderer.Gl20RendererEglContext(mEglContext);
[all...]
/frameworks/native/include/gui/
H A DGLConsumer.h265 // to mEglDisplay and mEglContext. If the fields have been previously
392 // mEglContext is the OpenGL ES context with which this GLConsumer is
396 EGLContext mEglContext; member in class:android::GLConsumer

Completed in 410 milliseconds