diff options
| author | 2011-11-21 21:08:23 -0800 | |
|---|---|---|
| committer | 2011-11-21 21:08:23 -0800 | |
| commit | 1e8f74ebc06cbe6ddb51be009b07a9fa52f6bc3e (patch) | |
| tree | f0c3f94fe57e8a8f0887f2b81c1cfe33c69724b7 /opengl/libs/EGL | |
| parent | 185a0a0420f54f9588ec1c7230313023a7a2259b (diff) | |
| parent | a3677781d039ca1539f262f8c07ca3c162123347 (diff) | |
am 8b8c321c: am b8d20d02: Merge "EGL: Use cache sizes defined in the BoardConfig" into ics-mr1
* commit '8b8c321c70687ace750e42b745b6e96258d739cd':
EGL: Use cache sizes defined in the BoardConfig
Diffstat (limited to 'opengl/libs/EGL')
| -rw-r--r-- | opengl/libs/EGL/egl_cache.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/opengl/libs/EGL/egl_cache.cpp b/opengl/libs/EGL/egl_cache.cpp index fe32d43589..c4a7466ec5 100644 --- a/opengl/libs/EGL/egl_cache.cpp +++ b/opengl/libs/EGL/egl_cache.cpp @@ -25,10 +25,18 @@ #include <sys/types.h> #include <unistd.h> +#ifndef MAX_EGL_CACHE_ENTRY_SIZE +#define MAX_EGL_CACHE_ENTRY_SIZE (16 * 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 maxValueSize = 4096; -static const size_t maxTotalSize = 64 * 1024; +static const size_t maxValueSize = MAX_EGL_CACHE_ENTRY_SIZE; +static const size_t maxTotalSize = MAX_EGL_CACHE_SIZE; // Cache file header static const char* cacheFileMagic = "EGL$"; |