diff options
author | Stan Iliev <stani@google.com> | 2017-10-09 15:49:32 -0400 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2017-11-08 18:55:41 +0000 |
commit | d495f43992c98d04cb5a4b1a7bf7917154072fb8 (patch) | |
tree | fdd0854be6917e8a7cb5d29ebab89897ff50058e /libs/hwui/renderthread/CacheManager.cpp | |
parent | 2b267dfbe967661879b54c638e1f72ab85c5b2f5 (diff) |
Implement SkSL cache
Implement SkSL cache by reusing code and logic from egl_cache_t.
Test: Improves startup times for gmail by 15ms and 10ms for calc app.
Bug: 66740665
Change-Id: I9ba479c649ba97a2c29a48d40579ba001264c957
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/CacheManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/CacheManager.cpp b/libs/hwui/renderthread/CacheManager.cpp index a33b2874e7a5..c22364b4a569 100644 --- a/libs/hwui/renderthread/CacheManager.cpp +++ b/libs/hwui/renderthread/CacheManager.cpp @@ -18,6 +18,7 @@ #include "Layer.h" #include "RenderThread.h" +#include "pipeline/skia/ShaderCache.h" #include "renderstate/RenderState.h" #include <GrContextOptions.h> @@ -127,6 +128,8 @@ void CacheManager::configureContext(GrContextOptions* contextOptions) { } contextOptions->fExecutor = mTaskProcessor.get(); } + + contextOptions->fPersistentCache = &skiapipeline::ShaderCache::get(); } void CacheManager::trimMemory(TrimMemoryMode mode) { |