summaryrefslogtreecommitdiff
path: root/gpu_tonemapper/glengine.cpp
diff options
context:
space:
mode:
authorRajesh Yadav <ryadav@codeaurora.org>2017-07-25 15:10:17 +0530
committerRajesh Yadav <ryadav@codeaurora.org>2017-07-25 15:13:44 +0530
commit2ab89e14edcf39550b16eaca81a56d6803787ac0 (patch)
treeb17d3c0cf375257763f18ce877e07678ef024ef1 /gpu_tonemapper/glengine.cpp
parent6482b4bc51f8d07e4de6c45dbd8cc16ea13bf3d8 (diff)
Revert "display: Store and restore the current eglContext"
This reverts commit 99ff47d39ed58a04890ccf8ba9d86ef2a5621270. Context restore is not required as HWC2 runs in hal context. Change-Id: If12e53f684db6440b8232f5a694220e88842445c
Diffstat (limited to 'gpu_tonemapper/glengine.cpp')
-rw-r--r--gpu_tonemapper/glengine.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/gpu_tonemapper/glengine.cpp b/gpu_tonemapper/glengine.cpp
index 6cfe15f5..6c94c23a 100644
--- a/gpu_tonemapper/glengine.cpp
+++ b/gpu_tonemapper/glengine.cpp
@@ -47,27 +47,6 @@ void engine_bind(void* context)
}
//-----------------------------------------------------------------------------
-// store the current context(caller)
-void* engine_backup()
-{
- EngineContext* callerContext = new EngineContext();
- // store the previous display/context
- callerContext->eglDisplay = eglGetCurrentDisplay();
- callerContext->eglContext = eglGetCurrentContext();
- callerContext->eglSurface = eglGetCurrentSurface(EGL_DRAW);
-
- return (void*)callerContext;
-}
-//-----------------------------------------------------------------------------
-// frees the backed up caller context
-void engine_free_backup(void* context)
-{
- EngineContext* callerContext = (EngineContext*)(context);
-
- delete callerContext;
-}
-
-//-----------------------------------------------------------------------------
// initialize GL
//
void* engine_initialize(bool isSecure)