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()
55 EngineContext* engineContext = new EngineContext(); in engine_initialize() local
58 engineContext->eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in engine_initialize()
62 EGL(eglInitialize(engineContext->eglDisplay, 0, 0)); in engine_initialize()
73 EGL(eglChooseConfig(engineContext->eglDisplay, eglConfigAttribList, &eglConfig, 1, &numConfig)); in engine_initialize()
80engineContext->eglContext = eglCreateContext(engineContext->eglDisplay, eglConfig, NULL, eglContex… in engine_initialize()
88engineContext->eglSurface = eglCreatePbufferSurface(engineContext->eglDisplay, eglConfig, eglSurfa… in engine_initialize()
90 …eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, en… in engine_initialize()
92 ALOGI("In %s context = %p", __FUNCTION__, (void *)(engineContext->eglContext)); in engine_initialize()
94 return (void*)(engineContext); in engine_initialize()
102 EngineContext* engineContext = (EngineContext*)context; in engine_shutdown() local
103 EGL(eglMakeCurrent(engineContext->eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)); in engine_shutdown()
104 EGL(eglDestroySurface(engineContext->eglDisplay, engineContext->eglSurface)); in engine_shutdown()
105 EGL(eglDestroyContext(engineContext->eglDisplay, engineContext->eglContext)); in engine_shutdown()
106 EGL(eglTerminate(engineContext->eglDisplay)); in engine_shutdown()
107 engineContext->eglDisplay = EGL_NO_DISPLAY; in engine_shutdown()
108 engineContext->eglContext = EGL_NO_CONTEXT; in engine_shutdown()
109 engineContext->eglSurface = EGL_NO_SURFACE; in engine_shutdown()