Vulkan on Fuchsia performance tuning (flutter/engine#3822)

* increase Vulkan GrContext resource cache limits to match android

* [content handler] tune VulkanSurfaceProducer allocation and recycling heuristics
This commit is contained in:
freiling
2017-06-23 16:02:23 -07:00
committed by GitHub
parent 8d9bce91dc
commit 09b35b4170
2 changed files with 5 additions and 0 deletions

View File

@@ -14,6 +14,9 @@
namespace vulkan {
static const int kGrCacheMaxCount = 8192;
static const size_t kGrCacheMaxByteSize = 512 * (1 << 20);
class VulkanDevice;
class VulkanProcTable;

View File

@@ -111,6 +111,8 @@ bool VulkanWindow::CreateSkiaGrContext() {
return false;
}
context->setResourceCacheLimits(kGrCacheMaxCount, kGrCacheMaxByteSize);
skia_vk_backend_context_ = backend_context;
skia_gr_context_ = context;