diff options
author | Jamie Gennis <jgennis@google.com> | 2012-09-12 11:55:16 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2012-09-12 11:59:24 -0700 |
commit | f478e6d18cb9eba1ded1f124ce16a899d271689e (patch) | |
tree | a054145101f2e3ddcfb59dff058284b4d9697467 /opengl/libs/EGL/egl_cache.cpp | |
parent | a0931d657551f5098f805fbdeeed2b060bbe6171 (diff) | |
download | frameworks_native-f478e6d18cb9eba1ded1f124ce16a899d271689e.zip frameworks_native-f478e6d18cb9eba1ded1f124ce16a899d271689e.tar.gz frameworks_native-f478e6d18cb9eba1ded1f124ce16a899d271689e.tar.bz2 |
EGL: make max cache key size BoardConfig-able
This change makes the maximum EGL blob cache key size configurable via a
BoardConfig.
Change-Id: Ic669cd25fc743662bd4f13aab62354fc3d54560c
Diffstat (limited to 'opengl/libs/EGL/egl_cache.cpp')
-rw-r--r-- | opengl/libs/EGL/egl_cache.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/opengl/libs/EGL/egl_cache.cpp b/opengl/libs/EGL/egl_cache.cpp index ed2bef3..72655df 100644 --- a/opengl/libs/EGL/egl_cache.cpp +++ b/opengl/libs/EGL/egl_cache.cpp @@ -29,12 +29,16 @@ #define MAX_EGL_CACHE_ENTRY_SIZE (16 * 1024); #endif +#ifndef MAX_EGL_CACHE_KEY_SIZE +#define MAX_EGL_CACHE_KEY_SIZE (1024); +#endif + #ifndef MAX_EGL_CACHE_SIZE #define MAX_EGL_CACHE_SIZE (64 * 1024); #endif // Cache size limits. -static const size_t maxKeySize = 1024; +static const size_t maxKeySize = MAX_EGL_CACHE_KEY_SIZE; static const size_t maxValueSize = MAX_EGL_CACHE_ENTRY_SIZE; static const size_t maxTotalSize = MAX_EGL_CACHE_SIZE; |