summaryrefslogtreecommitdiffstats
path: root/libs/hwui/PatchCache.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-08-23 21:05:08 -0700
committerRomain Guy <romainguy@google.com>2010-08-24 17:18:14 -0700
commitfb8b763f762ae21923c58d64caa729b012f40e05 (patch)
tree013792d41f32bff4dd35e6d53eebac711c513729 /libs/hwui/PatchCache.cpp
parenta1f1174b396cda7bdff469a2e974a737600c5eb0 (diff)
downloadframeworks_base-fb8b763f762ae21923c58d64caa729b012f40e05.zip
frameworks_base-fb8b763f762ae21923c58d64caa729b012f40e05.tar.gz
frameworks_base-fb8b763f762ae21923c58d64caa729b012f40e05.tar.bz2
Use only one GL context per process, share chaches.
Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11
Diffstat (limited to 'libs/hwui/PatchCache.cpp')
-rw-r--r--libs/hwui/PatchCache.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp
index 694e3fd..a7c0cce 100644
--- a/libs/hwui/PatchCache.cpp
+++ b/libs/hwui/PatchCache.cpp
@@ -20,6 +20,7 @@
#include <utils/ResourceTypes.h>
#include "PatchCache.h"
+#include "Properties.h"
namespace android {
namespace uirenderer {
@@ -28,6 +29,9 @@ namespace uirenderer {
// Constructors/destructor
///////////////////////////////////////////////////////////////////////////////
+PatchCache::PatchCache(): mCache(DEFAULT_PATCH_CACHE_SIZE) {
+}
+
PatchCache::PatchCache(uint32_t maxEntries): mCache(maxEntries) {
}