Home
last modified time | relevance | path

Searched refs:mEglContext (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java112 EGLContext mEglContext; field in BlockingGLTextureView.EglHelper
176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in start()
178 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { in start()
179 mEglContext = null; in start()
233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
249 return (GL10) mEglContext.getGL(); in createGL()
278 if (mEglContext != null) { in finish()
279 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finish()
280 mEglContext = null; in finish()
/frameworks/av/cmds/screenrecord/
DEglWindow.cpp93 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in makeCurrent()
149 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in eglSetupContext()
151 if (mEglContext == EGL_NO_CONTEXT) { in eglSetupContext()
165 if (mEglContext != EGL_NO_CONTEXT) { in eglRelease()
166 eglDestroyContext(mEglDisplay, mEglContext); in eglRelease()
175 mEglContext = EGL_NO_CONTEXT; in eglRelease()
DEglWindow.h36 mEglContext(EGL_NO_CONTEXT), in EglWindow()
76 EGLContext mEglContext; variable
/frameworks/native/libs/gui/tests/
DSRGB_test.cpp58 mEglContext(EGL_NO_CONTEXT), mEglSurface(EGL_NO_SURFACE), in SRGBTest()
67 if (mEglContext != EGL_NO_CONTEXT) { in ~SRGBTest()
68 eglDestroyContext(mEglDisplay, mEglContext); in ~SRGBTest()
240 EGLContext mEglContext; member in android::SRGBTest
276 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, in createEGLSurface()
279 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in createEGLSurface()
287 mEglContext)); in createEGLSurface()
447 mEglContext)); in TEST_F()
459 mEglContext)); in TEST_F()
DSurfaceTextureClient_test.cpp40 mEglContext(EGL_NO_CONTEXT), in SurfaceTextureClientTest()
84 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); in SetUp()
86 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp()
88 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); in SetUp()
98 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
123 EGLContext mEglContext; member in android::SurfaceTextureClientTest
191 EGLBoolean success = eglMakeCurrent(mEglDisplay, eglSurface, eglSurface, mEglContext); in TEST_F()
205 success = eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); in TEST_F()
725 mEglContext(EGL_NO_CONTEXT) { in MultiSurfaceTextureClientTest()
754 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, in SetUp()
[all …]
DGLTest.h41 mEglContext(EGL_NO_CONTEXT), in GLTest()
66 EGLContext mEglContext; variable
DSurfaceTextureGLToGL_test.cpp120 mEglContext)); in TEST_F()
179 mEglContext)); in TEST_F()
226 mEglContext)); in TEST_F()
371 mEglContext)); in TEST_F()
435 mEglContext)); in TEST_F()
499 mEglContext)); in TEST_F()
DGLTest.cpp90 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp()
93 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp()
96 mEglContext)); in SetUp()
121 if (mEglContext != EGL_NO_CONTEXT) { in TearDown()
122 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
DSurfaceTextureMultiContextGL.h63 mEglContext)); in SetUp()
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp92 , mEglContext(EGL_NO_CONTEXT) in EglManager()
184 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, attribs); in createContext()
185 LOG_ALWAYS_FATAL_IF(mEglContext == EGL_NO_CONTEXT, in createContext()
254 eglDestroyContext(mEglDisplay, mEglContext); in destroy()
261 mEglContext = EGL_NO_CONTEXT; in destroy()
273 if (!eglMakeCurrent(mEglDisplay, surface, surface, mEglContext)) { in makeCurrent()
DEglManager.h104 EGLContext mEglContext; variable
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLTextureViewActivity.java143 private EGLContext mEglContext; field in GLTextureViewActivity.RenderThread
347 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
352 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || in checkCurrent()
354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL()
395 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
400 mGL = mEglContext.getGL(); in initGL()
DSingleFrameTextureViewTestActivity.java87 private EGLContext mEglContext; in onSurfaceTextureAvailable()
121 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in onSurfaceTextureAvailable()
145 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in onSurfaceTextureAvailable()
159 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in onSurfaceTextureAvailable()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
DImageFlipRenderThread.java97 private EGLContext mEglContext; field in ImageFlipRenderThread
300 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
305 if (!mEglContext.equals(mEgl.eglGetCurrentContext()) || in checkCurrent()
307 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in checkCurrent()
334 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL()
348 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1034 mEglContext = null; in start()
1042 mEglContext = view.mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); in start()
1044 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { in start()
1045 mEglContext = null; in start()
1049 … Log.w("EglHelper", "createContext " + mEglContext + " tid=" + Thread.currentThread().getId()); in start()
1107 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in createSurface()
1125 GL gl = mEglContext.getGL(); in createGL()
1182 if (mEglContext != null) { in finish()
1185 view.mEGLContextFactory.destroyContext(mEgl, mEglDisplay, mEglContext); in finish()
1187 mEglContext = null; in finish()
[all …]
/frameworks/native/libs/gui/
DGLConsumer.cpp168 mEglContext(EGL_NO_CONTEXT), in GLConsumer()
196 mEglContext(EGL_NO_CONTEXT), in GLConsumer()
559 if (mEglContext == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked()
560 mEglContext = ctx; in checkAndUpdateEglStateLocked()
569 if (mEglContext != ctx || ctx == EGL_NO_CONTEXT) { in checkAndUpdateEglStateLocked()
575 mEglContext = ctx; in checkAndUpdateEglStateLocked()
615 if (mEglContext != ctx && mEglContext != EGL_NO_CONTEXT) { in detachFromContext()
630 mEglContext = EGL_NO_CONTEXT; in detachFromContext()
670 mEglContext = ctx; in attachToContext()
998 if (mEglContext != ctx || mEglContext == EGL_NO_CONTEXT) { in doGLFenceWaitLocked()
/frameworks/av/media/libstagefright/tests/
DSurfaceMediaSource_test.cpp54 mEglContext(EGL_NO_CONTEXT) { in GLTest()
118 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, in SetUp()
121 ASSERT_NE(EGL_NO_CONTEXT, mEglContext); in SetUp()
124 mEglContext)); in SetUp()
149 if (mEglContext != EGL_NO_CONTEXT) { in TearDown()
150 eglDestroyContext(mEglDisplay, mEglContext); in TearDown()
338 EGLContext mEglContext; member in android::GLTest
494 mEglContext)); in setUpEGLSurfaceFromMediaRecorder()
796 mEglContext)); in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java129 private EGLContext mEglContext; field in ImageWallpaper.DrawableEngine
735 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in finishGL()
759 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); in initGL()
760 if (mEglContext == EGL_NO_CONTEXT) { in initGL()
771 mEgl.eglMakeCurrent(mEglDisplay, tmpSurface, tmpSurface, mEglContext); in initGL()
781 mEgl.eglDestroyContext(mEglDisplay, mEglContext); in initGL()
801 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { in initGL()
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java90 private EGLContext mEglContext; field in ColorFade
553 if (mEglContext == null) {
558 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig,
560 if (mEglContext == null) {
668 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
/frameworks/native/include/gui/
DGLConsumer.h466 EGLContext mEglContext; variable