Home | History | Annotate | Download | only in gpu_tonemapper

Lines Matching defs:engineContext

27 class EngineContext {
32 EngineContext()
45 EngineContext* engineContext = (EngineContext*)(context);
46 EGL(eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, engineContext->eglContext));
55 EngineContext* engineContext = new EngineContext();
58 engineContext->eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
62 EGL(eglInitialize(engineContext->eglDisplay, 0, 0));
73 EGL(eglChooseConfig(engineContext->eglDisplay, eglConfigAttribList, &eglConfig, 1, &numConfig));
80 engineContext->eglContext = eglCreateContext(engineContext->eglDisplay, eglConfig, NULL, eglContextAttribList);
88 engineContext->eglSurface = eglCreatePbufferSurface(engineContext->eglDisplay, eglConfig, eglSurfaceAttribList);
90 eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, engineContext->eglContext);
92 ALOGI("In %s context = %p", __FUNCTION__, (void *)(engineContext->eglContext));
94 return (void*)(engineContext);
102 EngineContext* engineContext = (EngineContext*)context;
103 EGL(eglMakeCurrent(engineContext->eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
104 EGL(eglDestroySurface(engineContext->eglDisplay, engineContext->eglSurface));
105 EGL(eglDestroyContext(engineContext->eglDisplay, engineContext->eglContext));
106 EGL(eglTerminate(engineContext->eglDisplay));
107 engineContext->eglDisplay = EGL_NO_DISPLAY;
108 engineContext->eglContext = EGL_NO_CONTEXT;
109 engineContext->eglSurface = EGL_NO_SURFACE;