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/VulkanManager.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/VulkanManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/VulkanManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/VulkanManager.cpp b/libs/hwui/renderthread/VulkanManager.cpp index 3272d697e222..1d8cdd656f7a 100644 --- a/libs/hwui/renderthread/VulkanManager.cpp +++ b/libs/hwui/renderthread/VulkanManager.cpp @@ -107,8 +107,11 @@ void VulkanManager::initialize() { mGetDeviceQueue(mBackendContext->fDevice, mPresentQueueIndex, 0, &mPresentQueue); + GrContextOptions options; + options.fDisableDistanceFieldPaths = true; + mRenderThread.cacheManager().configureContext(&options); mRenderThread.setGrContext( - GrContext::Create(kVulkan_GrBackend, (GrBackendContext)mBackendContext.get())); + GrContext::Create(kVulkan_GrBackend, (GrBackendContext)mBackendContext.get(), options)); DeviceInfo::initialize(mRenderThread.getGrContext()->caps()->maxRenderTargetSize()); if (Properties::enablePartialUpdates && Properties::useBufferAge) { |