summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-11-21 15:54:54 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-11-21 15:54:54 -0800
commitb8d20d028ca590f6a9c57e0e8fee5e5f80e9ae54 (patch)
tree9892ca05351cb6ffff426898d92986fedc2d94ea /opengl/libs/EGL
parent53cf20202a3848a6c61b5229814268180a3d2f16 (diff)
parent6f0f0b186533ec0a1f11fd577c0c6dfa9dd29481 (diff)
downloadframeworks_base-b8d20d028ca590f6a9c57e0e8fee5e5f80e9ae54.zip
frameworks_base-b8d20d028ca590f6a9c57e0e8fee5e5f80e9ae54.tar.gz
frameworks_base-b8d20d028ca590f6a9c57e0e8fee5e5f80e9ae54.tar.bz2
Merge "EGL: Use cache sizes defined in the BoardConfig" into ics-mr1
Diffstat (limited to 'opengl/libs/EGL')
-rw-r--r--opengl/libs/EGL/egl_cache.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/opengl/libs/EGL/egl_cache.cpp b/opengl/libs/EGL/egl_cache.cpp
index fe32d43..c4a7466 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$";