display: Store and restore the current eglContext
Tone mapper engine setting the current eglContext and never
restored it. With multiple eglContexts used in same thread
by SurfaceFlinger and GPU Tonemapper, it lead to incorrect
eglContexts being used, hence always store the restore the
eglContext in each GPUTonemapper call.
CRs-Fixed: 2009259
Change-Id: Ic9fe73818ddfe3881e5fa82f7853dce130bba24e
diff --git a/gpu_tonemapper/engine.h b/gpu_tonemapper/engine.h
index c07f13e..84c7dc6 100644
--- a/gpu_tonemapper/engine.h
+++ b/gpu_tonemapper/engine.h
@@ -22,6 +22,8 @@
void* engine_initialize();
void engine_bind(void*);
+void* engine_backup();
+void engine_free_backup(void*);
void engine_shutdown(void*);
unsigned int engine_loadProgram(int, const char **, int, const char **);