diff options
author | 2016-02-06 01:39:34 +0000 | |
---|---|---|
committer | 2016-02-06 01:39:34 +0000 | |
commit | 807842acfacbc12a6ef0234e20ef3f91e669c06f (patch) | |
tree | a7dd12556c57405bc5129c917db91ef6f82d67c9 /libs/hwui/FboCache.cpp | |
parent | 2068bb8bb06303997697ecaaa2e7063835a972b6 (diff) | |
parent | 48a8f431fa52ae2ee25ffba9d20676f03bb710ff (diff) |
Merge "Move several property queries to Properties class"
Diffstat (limited to 'libs/hwui/FboCache.cpp')
-rw-r--r-- | libs/hwui/FboCache.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/libs/hwui/FboCache.cpp b/libs/hwui/FboCache.cpp index cca3cb7a98f1..b2181b60054f 100644 --- a/libs/hwui/FboCache.cpp +++ b/libs/hwui/FboCache.cpp @@ -27,15 +27,8 @@ namespace uirenderer { // Constructors/destructor /////////////////////////////////////////////////////////////////////////////// -FboCache::FboCache(): mMaxSize(DEFAULT_FBO_CACHE_SIZE) { - char property[PROPERTY_VALUE_MAX]; - if (property_get(PROPERTY_FBO_CACHE_SIZE, property, nullptr) > 0) { - INIT_LOGD(" Setting fbo cache size to %s", property); - mMaxSize = atoi(property); - } else { - INIT_LOGD(" Using default fbo cache size of %d", DEFAULT_FBO_CACHE_SIZE); - } -} +FboCache::FboCache() + : mMaxSize(Properties::fboCacheSize) {} FboCache::~FboCache() { clear(); |