Loading libs/hwui/pipeline/skia/SkiaPipeline.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ TaskManager* SkiaPipeline::getTaskManager() { } void SkiaPipeline::onDestroyHardwareResources() { unpinImages(); mRenderThread.cacheManager().trimStaleResources(); } Loading libs/hwui/renderthread/CacheManager.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -166,10 +166,7 @@ void CacheManager::trimStaleResources() { return; } mGrContext->flush(); // Here we purge all the unlocked scratch resources (leaving those resources w/ persistent data) // and then purge those w/ persistent data based on age. mGrContext->purgeUnlockedResources(true); mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(10)); mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(30)); } sp<skiapipeline::VectorDrawableAtlas> CacheManager::acquireVectorDrawableAtlas() { Loading Loading
libs/hwui/pipeline/skia/SkiaPipeline.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ TaskManager* SkiaPipeline::getTaskManager() { } void SkiaPipeline::onDestroyHardwareResources() { unpinImages(); mRenderThread.cacheManager().trimStaleResources(); } Loading
libs/hwui/renderthread/CacheManager.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -166,10 +166,7 @@ void CacheManager::trimStaleResources() { return; } mGrContext->flush(); // Here we purge all the unlocked scratch resources (leaving those resources w/ persistent data) // and then purge those w/ persistent data based on age. mGrContext->purgeUnlockedResources(true); mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(10)); mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(30)); } sp<skiapipeline::VectorDrawableAtlas> CacheManager::acquireVectorDrawableAtlas() { Loading