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));
53 EngineContext* callerContext = new EngineContext();
65 EngineContext* callerContext = (EngineContext*)(context);
76 EngineContext* engineContext = new EngineContext();
79 engineContext->eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
83 EGL(eglInitialize(engineContext->eglDisplay, 0, 0));
94 EGL(eglChooseConfig(engineContext->eglDisplay, eglConfigAttribList, &eglConfig, 1, &numConfig));
101 engineContext->eglContext = eglCreateContext(engineContext->eglDisplay, eglConfig, NULL, eglContextAttribList);
109 engineContext->eglSurface = eglCreatePbufferSurface(engineContext->eglDisplay, eglConfig, eglSurfaceAttribList);
111 eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, engineContext->eglContext);
113 ALOGI("In %s context = %p", __FUNCTION__, (void *)(engineContext->eglContext));
115 return (void*)(engineContext);
123 EngineContext* engineContext = (EngineContext*)context;
124 EGL(eglMakeCurrent(engineContext->eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
125 EGL(eglDestroySurface(engineContext->eglDisplay, engineContext->eglSurface));
126 EGL(eglDestroyContext(engineContext->eglDisplay, engineContext->eglContext));
127 EGL(eglTerminate(engineContext->eglDisplay));
128 engineContext->eglDisplay = EGL_NO_DISPLAY;
129 engineContext->eglContext = EGL_NO_CONTEXT;
130 engineContext->eglSurface = EGL_NO_SURFACE;