summaryrefslogtreecommitdiff
path: root/libs/hwui/PatchCache.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2016-02-06 01:39:34 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-02-06 01:39:34 +0000
commit807842acfacbc12a6ef0234e20ef3f91e669c06f (patch)
treea7dd12556c57405bc5129c917db91ef6f82d67c9 /libs/hwui/PatchCache.cpp
parent2068bb8bb06303997697ecaaa2e7063835a972b6 (diff)
parent48a8f431fa52ae2ee25ffba9d20676f03bb710ff (diff)
Merge "Move several property queries to Properties class"
Diffstat (limited to 'libs/hwui/PatchCache.cpp')
-rw-r--r--libs/hwui/PatchCache.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp
index 98812805259e..bd6feb9fc762 100644
--- a/libs/hwui/PatchCache.cpp
+++ b/libs/hwui/PatchCache.cpp
@@ -32,20 +32,12 @@ namespace uirenderer {
PatchCache::PatchCache(RenderState& renderState)
: mRenderState(renderState)
+ , mMaxSize(Properties::patchCacheSize)
, mSize(0)
, mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity)
, mMeshBuffer(0)
, mFreeBlocks(nullptr)
- , mGenerationId(0) {
- char property[PROPERTY_VALUE_MAX];
- if (property_get(PROPERTY_PATCH_CACHE_SIZE, property, nullptr) > 0) {
- INIT_LOGD(" Setting patch cache size to %skB", property);
- mMaxSize = KB(atoi(property));
- } else {
- INIT_LOGD(" Using default patch cache size of %.2fkB", DEFAULT_PATCH_CACHE_SIZE);
- mMaxSize = KB(DEFAULT_PATCH_CACHE_SIZE);
- }
-}
+ , mGenerationId(0) {}
PatchCache::~PatchCache() {
clear();