Lines Matching refs:engineContext
45 EngineContext* engineContext = (EngineContext*)(context); in engine_bind() local
46 …EGL(eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface… in engine_bind()
76 EngineContext* engineContext = new EngineContext(); in engine_initialize() local
79 engineContext->eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in engine_initialize()
83 EGL(eglInitialize(engineContext->eglDisplay, 0, 0)); in engine_initialize()
94 EGL(eglChooseConfig(engineContext->eglDisplay, eglConfigAttribList, &eglConfig, 1, &numConfig)); in engine_initialize()
101 …engineContext->eglContext = eglCreateContext(engineContext->eglDisplay, eglConfig, NULL, eglContex… in engine_initialize()
109 …engineContext->eglSurface = eglCreatePbufferSurface(engineContext->eglDisplay, eglConfig, eglSurfa… in engine_initialize()
111 …eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, en… in engine_initialize()
113 ALOGI("In %s context = %p", __FUNCTION__, (void *)(engineContext->eglContext)); in engine_initialize()
115 return (void*)(engineContext); in engine_initialize()
123 EngineContext* engineContext = (EngineContext*)context; in engine_shutdown() local
124 EGL(eglMakeCurrent(engineContext->eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)); in engine_shutdown()
125 EGL(eglDestroySurface(engineContext->eglDisplay, engineContext->eglSurface)); in engine_shutdown()
126 EGL(eglDestroyContext(engineContext->eglDisplay, engineContext->eglContext)); in engine_shutdown()
127 EGL(eglTerminate(engineContext->eglDisplay)); in engine_shutdown()
128 engineContext->eglDisplay = EGL_NO_DISPLAY; in engine_shutdown()
129 engineContext->eglContext = EGL_NO_CONTEXT; in engine_shutdown()
130 engineContext->eglSurface = EGL_NO_SURFACE; in engine_shutdown()