From 561a3c968bd3ae0029f4ee490159e5892d5529a6 Mon Sep 17 00:00:00 2001 From: Dustin Green Date: Thu, 2 May 2024 18:43:30 -0700 Subject: [PATCH] [fuchsia] route fuchsia.sysmem2.Allocator pt 2 (flutter/engine#52509) Fuchsia's fake-display will be migrating to sysmem2, which requires fuchsia.sysmem2.Allocator to be routed. fixes https://github.com/flutter/flutter/issues/146858 --- .../integration/embedder/flutter-embedder-test.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/tests/integration/embedder/flutter-embedder-test.cc b/engine/src/flutter/shell/platform/fuchsia/flutter/tests/integration/embedder/flutter-embedder-test.cc index 6c507103a0..6dd7982235 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/tests/integration/embedder/flutter-embedder-test.cc +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/tests/integration/embedder/flutter-embedder-test.cc @@ -237,6 +237,11 @@ void FlutterEmbedderTest::SetUpRealmBase() { Protocol{fuchsia::logger::LogSink::Name_}, Protocol{fuchsia::inspect::InspectSink::Name_}, Protocol{fuchsia::sysmem::Allocator::Name_}, + + // Replace "fuchsia.sysmem2.Allocator" with + // fuchsia::sysmem2::Allocator::Name_ + // when available (fuchsia SDK >= 19). + Protocol{"fuchsia.sysmem2.Allocator"}, Protocol{fuchsia::tracing::provider::Registry::Name_}, Protocol{kVulkanLoaderServiceName}, }, @@ -249,6 +254,11 @@ void FlutterEmbedderTest::SetUpRealmBase() { .capabilities = {Protocol{fuchsia::logger::LogSink::Name_}, Protocol{fuchsia::inspect::InspectSink::Name_}, Protocol{fuchsia::sysmem::Allocator::Name_}, + + // Replace "fuchsia.sysmem2.Allocator" with + // fuchsia::sysmem2::Allocator::Name_ + // when available (fuchsia SDK >= 19). + Protocol{"fuchsia.sysmem2.Allocator"}, Protocol{fuchsia::tracing::provider::Registry::Name_}, Protocol{kVulkanLoaderServiceName}}, .source = ParentRef{},