diff options
author | 2010-08-23 21:05:08 -0700 | |
---|---|---|
committer | 2010-08-24 17:18:14 -0700 | |
commit | fb8b763f762ae21923c58d64caa729b012f40e05 (patch) | |
tree | 013792d41f32bff4dd35e6d53eebac711c513729 /libs/hwui/Properties.h | |
parent | a1f1174b396cda7bdff469a2e974a737600c5eb0 (diff) |
Use only one GL context per process, share chaches.
Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11
Diffstat (limited to 'libs/hwui/Properties.h')
-rw-r--r-- | libs/hwui/Properties.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/hwui/Properties.h b/libs/hwui/Properties.h index 7514b6f0d905..dfe022ac9377 100644 --- a/libs/hwui/Properties.h +++ b/libs/hwui/Properties.h @@ -17,6 +17,8 @@ #ifndef ANDROID_UI_PROPERTIES_H #define ANDROID_UI_PROPERTIES_H +#include <cutils/properties.h> + /** * This file contains the list of system properties used to configure * the OpenGLRenderer. @@ -33,4 +35,14 @@ #define PROPERTY_TEXT_CACHE_WIDTH "ro.hwui.text_cache_width" #define PROPERTY_TEXT_CACHE_HEIGHT "ro.hwui.text_cache_height" +// Converts a number of mega-bytes into bytes +#define MB(s) s * 1024 * 1024 + +#define DEFAULT_TEXTURE_CACHE_SIZE 20.0f +#define DEFAULT_LAYER_CACHE_SIZE 6.0f +#define DEFAULT_PATH_CACHE_SIZE 6.0f +#define DEFAULT_PATCH_CACHE_SIZE 100 +#define DEFAULT_GRADIENT_CACHE_SIZE 0.5f +#define DEFAULT_DROP_SHADOW_CACHE_SIZE 2.0f + #endif // ANDROID_UI_PROPERTIES_H |