Loading core/jni/android/graphics/TextLayoutCache.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -78,8 +78,10 @@ void TextLayoutCache::operator()(TextLayoutCacheKey& text, sp<TextLayoutValue>& /* * Cache clearing */ void TextLayoutCache::clear() { void TextLayoutCache::purgeCaches() { AutoMutex _l(mLock); mCache.clear(); mShaper->purgeCaches(); } /* Loading Loading @@ -965,8 +967,7 @@ sp<TextLayoutValue> TextLayoutEngine::getValue(const SkPaint* paint, const jchar void TextLayoutEngine::purgeCaches() { #if USE_TEXT_LAYOUT_CACHE mTextLayoutCache->clear(); mShaper->purgeCaches(); mTextLayoutCache->purgeCaches(); #if DEBUG_GLYPHS ALOGD("Purged TextLayoutEngine caches"); #endif Loading core/jni/android/graphics/TextLayoutCache.h +1 −1 Original line number Diff line number Diff line Loading @@ -276,7 +276,7 @@ public: /** * Clear the cache */ void clear(); void purgeCaches(); private: TextLayoutShaper* mShaper; Loading Loading
core/jni/android/graphics/TextLayoutCache.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -78,8 +78,10 @@ void TextLayoutCache::operator()(TextLayoutCacheKey& text, sp<TextLayoutValue>& /* * Cache clearing */ void TextLayoutCache::clear() { void TextLayoutCache::purgeCaches() { AutoMutex _l(mLock); mCache.clear(); mShaper->purgeCaches(); } /* Loading Loading @@ -965,8 +967,7 @@ sp<TextLayoutValue> TextLayoutEngine::getValue(const SkPaint* paint, const jchar void TextLayoutEngine::purgeCaches() { #if USE_TEXT_LAYOUT_CACHE mTextLayoutCache->clear(); mShaper->purgeCaches(); mTextLayoutCache->purgeCaches(); #if DEBUG_GLYPHS ALOGD("Purged TextLayoutEngine caches"); #endif Loading
core/jni/android/graphics/TextLayoutCache.h +1 −1 Original line number Diff line number Diff line Loading @@ -276,7 +276,7 @@ public: /** * Clear the cache */ void clear(); void purgeCaches(); private: TextLayoutShaper* mShaper; Loading