diff options
| author | 2010-08-24 17:20:20 -0700 | |
|---|---|---|
| committer | 2010-08-24 17:20:20 -0700 | |
| commit | a84e02ce3cc392ccf23bbe89cdfbef650047ffe7 (patch) | |
| tree | 6ddb05a329a031522ccd45c477d11556dfdb5ee1 /libs/hwui/PatchCache.cpp | |
| parent | 17b4d9ea826609f26a73077975c2399f91b5ca36 (diff) | |
| parent | fb8b763f762ae21923c58d64caa729b012f40e05 (diff) | |
Merge "Use only one GL context per process, share chaches."
Diffstat (limited to 'libs/hwui/PatchCache.cpp')
| -rw-r--r-- | libs/hwui/PatchCache.cpp | 4 |
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) { } |