diff options
author | Jamie Gennis <jgennis@google.com> | 2011-11-03 17:42:43 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-11-04 15:01:51 -0700 |
commit | 0dc908ce71cb643dfb41598be9f358baec93fc41 (patch) | |
tree | 9e2f9be0e792e766fd31243b5b89f139377822ce /opengl/libs/EGL/eglApi.cpp | |
parent | 62015f5d0d1104dfc682b3eb3b6c0be4f63b985a (diff) | |
download | frameworks_base-0dc908ce71cb643dfb41598be9f358baec93fc41.zip frameworks_base-0dc908ce71cb643dfb41598be9f358baec93fc41.tar.gz frameworks_base-0dc908ce71cb643dfb41598be9f358baec93fc41.tar.bz2 |
EGL: Add stubs for EGL_ANDROID_blob_cache
This change adds a stub cache implementation that gets passed to the
underlying EGL implementation at initialization time.
Change-Id: I14437c5b6f91b7a34a19bb02ad802e6e54f88d2a
Diffstat (limited to 'opengl/libs/EGL/eglApi.cpp')
-rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index 1f9ce68..60ac34b 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -858,10 +858,17 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname) return NULL; } + // The EGL_ANDROID_blob_cache extension should not be exposed to + // applications. It is used internally by the Android EGL layer. + if (!strcmp(procname, "eglSetBlobCacheFuncs")) { + return NULL; + } + __eglMustCastToProperFunctionPointerType addr; addr = findProcAddress(procname, sExtentionMap, NELEM(sExtentionMap)); if (addr) return addr; + // this protects accesses to sGLExtentionMap and sGLExtentionSlot pthread_mutex_lock(&sExtensionMapMutex); |