summaryrefslogtreecommitdiffstats
path: root/opengl/system/egl
diff options
context:
space:
mode:
authorTina Zhang <tina.zhang@intel.com>2014-07-23 16:34:48 +0800
committerTina Zhang <tina.zhang@intel.com>2014-07-23 16:58:11 +0800
commit7a2929cd6548693b581c17ba69308a49e03c56be (patch)
treeadc009063c04581cdd092a16e22db4bcef25deba /opengl/system/egl
parent7ea757df0311bfb7310a7a765dcec1b79f39f25d (diff)
downloadandroid_device_generic_goldfish-7a2929cd6548693b581c17ba69308a49e03c56be.tar.gz
android_device_generic_goldfish-7a2929cd6548693b581c17ba69308a49e03c56be.tar.bz2
android_device_generic_goldfish-7a2929cd6548693b581c17ba69308a49e03c56be.zip
Remove display initialization from eglGetProcAddress API
We don't need to do the initialization in the eglGetProcAddress API. The work can be finished in the eglInitialize API. When zygote pre-loading resources, eglGetProcAddress will be called. If we let eglGetProcAddress do the display initialization, zygote will get the "qemu-pipe" handle of the "opengles" service. This is bad, because all the java processes which forked from zygote will get the same handle from zygote. Then the host service cannot distinguish from the device threads, and this will lead the emulator to crash. Change-Id: I74ddc0db5c91c84afe0916f118937ef8f891b162 Signed-off-by: Tina Zhang <tina.zhang@intel.com> Signed-off-by: WeixingX Tian <weixingx.tian@intel.com>
Diffstat (limited to 'opengl/system/egl')
-rw-r--r--opengl/system/egl/egl.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/opengl/system/egl/egl.cpp b/opengl/system/egl/egl.cpp
index 72e0037..daa52de 100644
--- a/opengl/system/egl/egl.cpp
+++ b/opengl/system/egl/egl.cpp
@@ -526,15 +526,6 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
}
}
- //
- // Make sure display is initialized before searching in client APIs
- //
- if (!s_display.initialized()) {
- if (!s_display.initialize(&s_eglIface)) {
- return NULL;
- }
- }
-
// look in gles client api's extensions table
return (__eglMustCastToProperFunctionPointerType)ClientAPIExts::getProcAddress(procname);