From 58b003d494cee1c22ae42c043a55139d58d6f18e Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 31 Jan 2020 18:57:29 -0800 Subject: [PATCH] [fuchsia] Disable retained vulkan surfaces until we figure out why they're being recycled prematurely. --- 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 38ea0a0b51b14..3d768d05d6f0b 100644 --- a/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc +++ b/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc @@ -128,7 +128,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()|). //