diff options
author | 2014-06-10 17:22:31 +0000 | |
---|---|---|
committer | 2014-06-10 17:22:31 +0000 | |
commit | 1e5cf9aced40e6e14262e542d0ed0e24cda877a0 (patch) | |
tree | 1b42070defc0a41277e27ae37c92748dec18fc99 /libs/hwui/PathCache.cpp | |
parent | f1d758867aa878fb956af7c66bd2d3122adf72a0 (diff) | |
parent | 9a9d1d5ad2591f04881a401da0ad89a95eeddd00 (diff) |
am b1c76a1a: Merge "Tessellate on worker threads" into lmp-preview-dev
* commit 'b1c76a1abcfb2f33e12fef37ec71d20724863b5e':
Tessellate on worker threads
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r-- | libs/hwui/PathCache.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp index d9c06d3bba0d..9dd5aa514d3f 100644 --- a/libs/hwui/PathCache.cpp +++ b/libs/hwui/PathCache.cpp @@ -74,10 +74,6 @@ hash_t PathDescription::hash() const { return JenkinsHashWhiten(hash); } -int PathDescription::compare(const PathDescription& rhs) const { - return memcmp(this, &rhs, sizeof(PathDescription)); -} - /////////////////////////////////////////////////////////////////////////////// // Utilities /////////////////////////////////////////////////////////////////////////////// @@ -163,14 +159,7 @@ PathCache::PathCache(): } else { INIT_LOGD(" Using default %s cache size of %.2fMB", name, DEFAULT_PATH_CACHE_SIZE); } - init(); -} -PathCache::~PathCache() { - mCache.clear(); -} - -void PathCache::init() { mCache.setOnEntryRemovedListener(this); GLint maxTextureSize; @@ -180,6 +169,10 @@ void PathCache::init() { mDebugEnabled = readDebugLevel() & kDebugCaches; } +PathCache::~PathCache() { + mCache.clear(); +} + /////////////////////////////////////////////////////////////////////////////// // Size management /////////////////////////////////////////////////////////////////////////////// @@ -341,7 +334,7 @@ PathCache::PathProcessor::PathProcessor(Caches& caches): } void PathCache::PathProcessor::onProcess(const sp<Task<SkBitmap*> >& task) { - sp<PathTask> t = static_cast<PathTask* >(task.get()); + PathTask* t = static_cast<PathTask*>(task.get()); ATRACE_NAME("pathPrecache"); float left, top, offset; |