Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 539f64f

Browse files
authored
[fuchsia] Disable retained layers (#16548)
Retained surfaces are being prematurely recycled. Temporarily disabling them until they are reworked.
1 parent a61dbf2 commit 539f64f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shell/platform/fuchsia/flutter/vulkan_surface_pool.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ void VulkanSurfacePool::SubmitSurface(
129129
const flutter::LayerRasterCacheKey& retained_key =
130130
vulkan_surface->GetRetainedKey();
131131

132-
if (retained_key.id() != 0) {
132+
// TODO(https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=44141): Re-enable
133+
// retained surfaces after we find out why textures are being prematurely
134+
// recycled.
135+
const bool kUseRetainedSurfaces = false;
136+
if (kUseRetainedSurfaces && retained_key.id() != 0) {
133137
// Add the surface to |retained_surfaces_| if its retained key has a valid
134138
// layer id (|retained_key.id()|).
135139
//

0 commit comments

Comments
 (0)