diff options
| author | 2014-06-10 04:52:12 +0000 | |
|---|---|---|
| committer | 2014-06-10 04:52:12 +0000 | |
| commit | 9a9d1d5ad2591f04881a401da0ad89a95eeddd00 (patch) | |
| tree | 0d3667be13872dc3de059a4a61a591601abc9bf6 /libs/hwui/PathCache.cpp | |
| parent | 3721cbaf016275246e854e76381991570abd7148 (diff) | |
| parent | 05f3d6e5111fd08df5cd9aae2c3d28399dc0e7f5 (diff) | |
Merge "Tessellate on worker threads" into lmp-preview-dev
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 5a49f38c6996..ab6b742f8f4f 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; |