summaryrefslogtreecommitdiff
path: root/libs/hwui/PatchCache.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2010-08-24 17:20:20 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-08-24 17:20:20 -0700
commita84e02ce3cc392ccf23bbe89cdfbef650047ffe7 (patch)
tree6ddb05a329a031522ccd45c477d11556dfdb5ee1 /libs/hwui/PatchCache.cpp
parent17b4d9ea826609f26a73077975c2399f91b5ca36 (diff)
parentfb8b763f762ae21923c58d64caa729b012f40e05 (diff)
Merge "Use only one GL context per process, share chaches."
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 694e3fd6205c..a7c0ccef89f8 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) {
}