From a038d385e6a3d07e3922227935e3c370f6ec9e0c Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Tue, 11 Feb 2020 13:37:48 -0800 Subject: [PATCH] [fuchsia] Disable retained layers Retained surfaces are being prematurely recycled. Temporarily disabling them until they are reworked. --- shell/platform/fuchsia/flutter/vulkan_surface_pool.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc b/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc index 07ea5bcb70390..03eb1638ddb48 100644 --- a/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc +++ b/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc @@ -129,7 +129,11 @@ void VulkanSurfacePool::SubmitSurface( const flutter::LayerRasterCacheKey& retained_key = vulkan_surface->GetRetainedKey(); - if (retained_key.id() != 0) { + // TODO(https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=44141): Re-enable + // retained surfaces after we find out why textures are being prematurely + // recycled. + const bool kUseRetainedSurfaces = false; + if (kUseRetainedSurfaces && retained_key.id() != 0) { // Add the surface to |retained_surfaces_| if its retained key has a valid // layer id (|retained_key.id()|). //