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:
@@ -14,6 +14,9 @@
|
||||
|
||||
namespace vulkan {
|
||||
|
||||
static const int kGrCacheMaxCount = 8192;
|
||||
static const size_t kGrCacheMaxByteSize = 512 * (1 << 20);
|
||||
|
||||
class VulkanDevice;
|
||||
class VulkanProcTable;
|
||||
|
||||
|
||||
@@ -111,6 +111,8 @@ bool VulkanWindow::CreateSkiaGrContext() {
|
||||
return false;
|
||||
}
|
||||
|
||||
context->setResourceCacheLimits(kGrCacheMaxCount, kGrCacheMaxByteSize);
|
||||
|
||||
skia_vk_backend_context_ = backend_context;
|
||||
skia_gr_context_ = context;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user